public class ExternalAuthnSystemLoginHandler extends AbstractLoginHandler
FORCE_AUTHN_PARAM
, PASSIVE_AUTHN_PARAM
, AUTHN_METHOD_PARAM
, and
RELYING_PARTY_PARAM
.
The external authentication system invocation Fileter/Servlet/JSP must, upon completion of authentication, set the
appropriate HttpServletRequest
attributes, as described by the
LoginHandler
interface and then invoke
AuthenticationEngine.returnToAuthenticationEngine(HttpServletRequest, HttpServletResponse)
.修飾子とタイプ | フィールドと説明 |
---|---|
static String |
AUTHN_METHOD_PARAM
Query parameter, "authnMethod" , that provides which authentication method should be attempted.
|
static String |
FORCE_AUTHN_PARAM
Query parameter, "forceAuthn" , that indicates whether the authentication request requires forced authentication.
|
static String |
PASSIVE_AUTHN_PARAM
Query parameter, "isPassive" , that indicates whether the authentication requires passive authentication.
|
static String |
RELYING_PARTY_PARAM
Query parameter, "relyingParty" , that provides the entity ID of the relying party that is requesting authentication.
|
AUTHENTICATION_ERROR_KEY, AUTHENTICATION_EXCEPTION_KEY, AUTHENTICATION_INSTANT_KEY, AUTHENTICATION_METHOD_KEY, PRINCIPAL_KEY, PRINCIPAL_NAME_KEY, SUBJECT_KEY
コンストラクタと説明 |
---|
ExternalAuthnSystemLoginHandler()
Constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
String |
getExternalAuthnPath()
Get context-relative path to the Filter, Servlet, or JSP that triggers the external authentication system.
|
void |
login(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Authenticate the user making the request.
|
protected void |
populateRequestAttributes(javax.servlet.http.HttpServletRequest httpRequest)
Sets the request attributes that will be sent to the external authentication service.
|
void |
setExternalAuthnPath(String path)
Set context-relative path to the Filter, Servlet, or JSP that triggers the external authentication system.
|
getAuthenticationDuration, getSupportedAuthenticationMethods, setAuthenticationDuration, setAuthenticationDurection, setSupportsForceAuthentication, setSupportsPassive, supportsForceAuthentication, supportsPassive
public static final String FORCE_AUTHN_PARAM
public static final String PASSIVE_AUTHN_PARAM
public static final String AUTHN_METHOD_PARAM
public String getExternalAuthnPath()
public void setExternalAuthnPath(String path)
path
- context-relative path to the Filter, Servlet, or JSP that triggers the external authentication
system, may not be null or emptypublic void login(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
httpRequest
- user requesthttpResponse
- response to userprotected void populateRequestAttributes(javax.servlet.http.HttpServletRequest httpRequest)
httpRequest
- current HTTP requestCopyright © 2012. All Rights Reserved.