public class Saml2LoginContext extends LoginContext implements Serializable
LoginContext
.
This class can interpret RequestedAuthnContext
and act accordingly.LOGIN_CONTEXT_KEY
コンストラクタと説明 |
---|
Saml2LoginContext(String relyingParty,
String state,
AuthnRequest request)
Creates a new instance of Saml2LoginContext.
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected List<String> |
extractRequestedAuthenticationMethods(AuthnRequest request)
Extracts the authentication methods requested within the request.
|
String |
getAuthenticationRequest()
Gets the serialized authentication request that started the login process.
|
AuthnRequest |
getAuthenticiationRequestXmlObject()
Gets the authentication request object.
|
String |
getRelayState()
Gets the relay state from the originating authentication request.
|
boolean |
isUnsolicited()
Returns the unsolicited SSO indicator.
|
protected String |
serializeRequest(AuthnRequest request)
Serializes an authentication request into a string.
|
void |
setUnsolicited(boolean isUnsolicited)
Sets the unsolicited SSO indicator.
|
getAttemptedAuthnMethod, getAuthenticationAttempted, getAuthenticationDuration, getAuthenticationEngineURL, getAuthenticationFailure, getAuthenticationInstant, getAuthenticationMethod, getAuthenticationMethodInformation, getDefaultAuthenticationMethod, getPrincipalName, getProfileHandlerURL, getProperty, getRelyingPartyId, getRequestedAuthenticationMethods, getSessionID, isForceAuthRequired, isPassiveAuthRequired, isPrincipalAuthenticated, setAttemptedAuthnMethod, setAuthenticationAttempted, setAuthenticationDuration, setAuthenticationEngineURL, setAuthenticationFailure, setAuthenticationInstant, setAuthenticationMethod, setAuthenticationMethodInformation, setDefaultAuthenticationMethod, setForceAuthRequired, setPassiveAuthRequired, setPrincipalAuthenticated, setPrincipalName, setProfileHandlerURL, setProperty, setRelyingParty, setSessionID
public Saml2LoginContext(String relyingParty, String state, AuthnRequest request) throws MarshallingException
relyingParty
- entity ID of the relying partystate
- relay state from incoming authentication requestrequest
- SAML 2.0 Authentication RequestMarshallingException
- thrown if the given request can not be marshalled and serialized into a stringpublic AuthnRequest getAuthenticiationRequestXmlObject() throws UnmarshallingException
UnmarshallingException
- thrown if there is a problem unmarshalling the serialized form of the requestpublic String getAuthenticationRequest() throws UnmarshallingException
UnmarshallingException
- thrown if the serialized form on the authentication request can be unmarshalledpublic String getRelayState()
public boolean isUnsolicited()
public void setUnsolicited(boolean isUnsolicited)
isUnsolicited
- unsolicited SSO indicator to setprotected String serializeRequest(AuthnRequest request) throws MarshallingException
request
- the request to serializeMarshallingException
- thrown if the request can not be marshalled and serializedprotected List<String> extractRequestedAuthenticationMethods(AuthnRequest request)
request
- the authentication requestCopyright © 2012. All Rights Reserved.