public class PapeResponse extends PapeMessage
Modifier and Type | Field and Description |
---|---|
protected static 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 |
PapeResponse()
Constructs a Pape Response with an empty parameter list.
|
protected |
PapeResponse(ParameterList params)
Constructs a Pape Response from a parameter list.
|
Modifier and Type | Method and Description |
---|---|
void |
addAuthPolicy(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) |
Date |
getAuthDate()
Gets the timestamp when the End User has most recentnly authenticated
to the OpenID Provider in a manner fitting the asserted policies.
|
String |
getAuthPolicies()
Gets the auth_policies parameter value.
|
List |
getAuthPoliciesList()
Gets a list with the auth_policies.
|
String |
getAuthTime()
Gets the timestamp when the End User has most recentnly authenticated
to the OpenID Provider in a manner fitting the asserted policies.
|
String |
getCustomAuthLevel(String authLevelTypeUri) |
void |
setAuthPolicies(String policyUris)
Sets a new value for the auth_policies parameter.
|
void |
setAuthTime(Date timestamp)
Sets the auth_time parameter.
|
void |
setCustomAuthLevel(String authLevelTypeUri,
String level) |
addAuthLevelExtension, getCustomAuthLevelAlias, getExtension, getParameter, getParameters, getParameterValue, getTypeUri, hasCustomAuthLevel, hasParameter, providesIdentifier, set, setParameters, signRequired
protected static final List PAPE_FIELDS
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.
public static PapeResponse createPapeResponse()
public static PapeResponse createPapeResponse(ParameterList params) throws MessageException
MessageException
public String getAuthPolicies()
public void setAuthPolicies(String policyUris)
policyUris
- Space separated list of authentication policy
URIs to be set.addAuthPolicy(String)
public void addAuthPolicy(String policyUri)
policyUri
- The authentication policy URI to be set.setAuthPolicies(String)
public List getAuthPoliciesList()
public void setAuthTime(Date timestamp)
timestamp
- The most recent timestamp when the End User has
actively authenticated to the OP in a manner
fitting the asserted policies.public String getAuthTime()
getAuthDate()
public Date getAuthDate()
getAuthTime()
Copyright © 2017 Sxip. All rights reserved.