|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openid4java.message.pape.PapeMessage
org.openid4java.message.pape.PapeResponse
public class PapeResponse
Implements the extension for OpenID Provider Authentication Policy responses.
| Field Summary | |
|---|---|
private static org.apache.commons.logging.Log |
_log
|
static java.lang.String |
AUTH_AGE_UNKNOWN
|
private static boolean |
DEBUG
|
protected static java.util.List |
PAPE_FIELDS
|
| Fields inherited from class org.openid4java.message.pape.PapeMessage |
|---|
_parameters, OPENID_NS_PAPE, PAPE_POLICY_MULTI_FACTOR, PAPE_POLICY_MULTI_FACTOR_PHYSICAL, PAPE_POLICY_PHISHING_RESISTANT |
| Constructor Summary | |
|---|---|
protected |
PapeResponse()
Constructs a Pape Response with an empty parameter list. |
protected |
PapeResponse(ParameterList params)
Constructs a Pape Response from a parameter list. |
| Method Summary | |
|---|---|
void |
addAuthPolicy(java.lang.String policyUri)
Adds an authentication policy URI to the auth_policies parameter. |
static PapeResponse |
createPapeResponse()
Constructs a Pape Response with an empty parameter list. |
static PapeResponse |
createPapeResponse(ParameterList params)
|
int |
getAuthAge()
Gets the value of the auth_age parameter. |
java.lang.String |
getAuthPolicies()
Gets the auth_policies parameter value. |
java.util.List |
getAuthPoliciesList()
Gets a list with the auth_policies. |
int |
getNistAuthLevel()
Gets the value of the nist_auth_level parameter. |
private boolean |
isValid()
Checks the validity of the extension. |
void |
setAuthAge(int seconds)
Sets the auth_age parameter. |
void |
setAuthPolicies(java.lang.String policyUris)
Sets a new value for the auth_policies parameter. |
void |
setNistAuthLevel(int level)
|
| Methods inherited from class org.openid4java.message.pape.PapeMessage |
|---|
getExtension, getParameter, getParameters, getParameterValue, getTypeUri, hasParameter, providesIdentifier, set, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.commons.logging.Log _log
private static final boolean DEBUG
public static final java.lang.String AUTH_AGE_UNKNOWN
protected static final java.util.List PAPE_FIELDS
| Constructor Detail |
|---|
protected PapeResponse()
protected PapeResponse(ParameterList params)
The parameter list can be extracted from a received message with the
getExtensionParams method of the Message class, and MUST NOT contain
the "openid.
| Method Detail |
|---|
public static PapeResponse createPapeResponse()
public static PapeResponse createPapeResponse(ParameterList params)
throws MessageException
MessageExceptionpublic java.lang.String getAuthPolicies()
public void setAuthPolicies(java.lang.String policyUris)
policyUris - Space separated list of authentication policy
URIs to be set.addAuthPolicy(String)public void addAuthPolicy(java.lang.String policyUri)
policyUri - The authentication policy URI to be set.setAuthPolicies(String)public java.util.List getAuthPoliciesList()
public void setAuthAge(int seconds)
seconds - The number of seconds since the user was actively
authenticated by the OP, or -1 if the auth_age
is unknown.public int getAuthAge()
public int getNistAuthLevel()
NIST levels are integers between 1 and 4 inclusive. Level 0 is used to signify that the OP recognizes the parameter and the user authentication did not meet the requirements of Level 1.
public void setNistAuthLevel(int level)
throws MessageException
MessageExceptionprivate boolean isValid()
Used when constructing a extension from a parameter list.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||