public class PapeRequest extends PapeMessage
Message
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
_log |
private static boolean |
DEBUG |
protected static java.util.List |
PAPE_FIELDS |
_parameters, AUTH_LEVEL_NS_PREFIX, AUTH_LEVEL_PREFIX, authLevelAliases, OPENID_NS_PAPE, PAPE_POLICY_MULTI_FACTOR, PAPE_POLICY_MULTI_FACTOR_PHYSICAL, PAPE_POLICY_PHISHING_RESISTANT
Modifier | Constructor and Description |
---|---|
protected |
PapeRequest()
Constructs a Pape Request with an empty parameter list.
|
protected |
PapeRequest(ParameterList params)
Constructs a PapeRequest from a parameter list.
|
Modifier and Type | Method and Description |
---|---|
void |
addPreferredAuthPolicy(java.lang.String policyUri)
Adds an authentication policy URI to the preferred_auth_policies
parameter.
|
void |
addPreferredCustomAuthLevel(java.lang.String authLevelTypeUri) |
static PapeRequest |
createPapeRequest()
Constructs a Pape Request with an empty parameter list.
|
static PapeRequest |
createPapeRequest(ParameterList params)
Constructs a PapeRequest from a parameter list.
|
int |
getMaxAuthAge()
Gets the max_auth_age parameter.
|
java.lang.String |
getPreferredAuthPolicies()
Gets the preferred_auth_policies parameter value.
|
java.util.List |
getPreferredAuthPoliciesList()
Gets a list with the preferred_auth_policies.
|
void |
setMaxAuthAge(int seconds)
Sets the max_auth_age parameter.
|
void |
setPreferredAuthPolicies(java.lang.String policyUris)
Sets a new value for the preferred_auth_policies parameter.
|
void |
validate()
Checks the validity of the extension.
|
addAuthLevelExtension, getCustomAuthLevelAlias, getExtension, getParameter, getParameters, getParameterValue, getTypeUri, hasCustomAuthLevel, hasParameter, providesIdentifier, set, setParameters, signRequired
private static org.apache.commons.logging.Log _log
private static final boolean DEBUG
protected static final java.util.List PAPE_FIELDS
protected PapeRequest()
protected PapeRequest(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.
public static PapeRequest createPapeRequest()
public static PapeRequest createPapeRequest(ParameterList params) throws MessageException
The parameter list can be extracted from a received message with the
getExtensionParams method of the Message class, and MUST NOT contain
the "openid.
MessageException
public java.lang.String getPreferredAuthPolicies()
public void setPreferredAuthPolicies(java.lang.String policyUris)
policyUris
- Space separated list of authentication policy
URIs to be set.addPreferredAuthPolicy(String)
public void addPreferredAuthPolicy(java.lang.String policyUri)
policyUri
- The authentication policy URI to be set.setPreferredAuthPolicies(String)
public java.util.List getPreferredAuthPoliciesList()
public void setMaxAuthAge(int seconds)
seconds
- The number of seconds within which the OP is
requested to have actively authenticated the user.public int getMaxAuthAge()
public void validate() throws MessageException
Used when constructing a extension from a parameter list.
MessageException
- if the PapeRequest is not valid.public void addPreferredCustomAuthLevel(java.lang.String authLevelTypeUri)
Copyright 2006-2008 Sxip Identity Corporation