org.sourceid.saml20.adapter.idp.authn
Class AuthnPolicy

java.lang.Object
  extended by org.sourceid.saml20.adapter.idp.authn.AuthnPolicy

public class AuthnPolicy
extends java.lang.Object

A wrapper object that contains restrictions on what kind of user interaction is allowed or required during authentication.

In general the values contained are derived from the IsPassive and ForceAuthn attributes of the SAML2 AuthnRequest.

To be protocol compliant, an adapter implementation should behave as dictated by the AuthnPolicy.

Author:
Brian Campbell

Constructor Summary
AuthnPolicy(boolean allowUserInteraction, boolean reauthenticate)
          Create a new AuthnPolicy object.
 
Method Summary
 boolean allowUserInteraction()
          Does policy allow direct interaction with the user (or user agent)? Generally interacting with the user means presenting them with a login page or something similar.
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 boolean reauthenticate()
          Does policy dictate that the user re-authenticate? Re-authenticating generally means that an existing security context should not be relied upon and that the user must present authentication credentials again.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthnPolicy

public AuthnPolicy(boolean allowUserInteraction,
                   boolean reauthenticate)
Create a new AuthnPolicy object.

Method Detail

allowUserInteraction

public boolean allowUserInteraction()
Does policy allow direct interaction with the user (or user agent)? Generally interacting with the user means presenting them with a login page or something similar.

Returns:
true if direct user interaction is allowed, false otherwise

reauthenticate

public boolean reauthenticate()
Does policy dictate that the user re-authenticate? Re-authenticating generally means that an existing security context should not be relied upon and that the user must present authentication credentials again.

Returns:
true if the user must reauthenticate, false otherwise

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright 2007 Ping Identity Corp. All rights reserved.