public class IdpHandler extends Object implements AuthenticationHandler
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_TYPE
IdP type to use when configuring context policy.
|
static String |
ECP_NS |
static String |
ECP_RELAY_STATE |
static String |
ECP_REQUEST |
static String |
HTTP_SCHEMAS_XMLSOAP_ORG_SOAP_ACTOR_NEXT |
static String |
PAOS |
static String |
PAOS_MIME |
static String |
PAOS_NS |
static String |
PAOS_REQUEST |
static String |
PAOS_RESPONSE |
static String |
SAML_REQUEST |
String |
soapfaultMessageTemplate |
String |
soapMessageTemplate |
static String |
SOURCE |
static String |
TLS_SERVER_END_POINT |
static String |
UNABLE_TO_ENCODE_SAML_AUTHN_REQUEST |
static String |
UNABLE_TO_SIGN_SAML_AUTHN_REQUEST |
Constructor and Description |
---|
IdpHandler(SimpleSign simpleSign,
IdpMetadata metadata,
RelayStates<String> relayStates) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAuthContextClasses() |
String |
getAuthenticationType()
Authentication type String used to match this handler with the auth types configured for a
specific context.
|
HandlerResult |
getNormalizedToken(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain,
boolean resolve)
Handler implementing SAML 2.0 IdP authentication.
|
HandlerResult |
handleError(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain chain)
Called when downstream authentication fails.
|
void |
setAuthContextClasses(List<String> authContextClasses) |
void |
setSessionFactory(SessionFactory sessionFactory) |
void |
setUserAgentCheck(boolean userAgentCheck) |
public static final String AUTH_TYPE
public static final String SOURCE
public static final String UNABLE_TO_ENCODE_SAML_AUTHN_REQUEST
public static final String UNABLE_TO_SIGN_SAML_AUTHN_REQUEST
public static final String PAOS
public static final String PAOS_MIME
public static final String PAOS_NS
public static final String ECP_NS
public static final String SAML_REQUEST
public static final String PAOS_REQUEST
public static final String PAOS_RESPONSE
public static final String ECP_REQUEST
public static final String ECP_RELAY_STATE
public static final String HTTP_SCHEMAS_XMLSOAP_ORG_SOAP_ACTOR_NEXT
public static final String TLS_SERVER_END_POINT
public final String soapMessageTemplate
public final String soapfaultMessageTemplate
public IdpHandler(SimpleSign simpleSign, IdpMetadata metadata, RelayStates<String> relayStates) throws IOException
IOException
public String getAuthenticationType()
AuthenticationHandler
getAuthenticationType
in interface AuthenticationHandler
public HandlerResult getNormalizedToken(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain, boolean resolve) throws javax.servlet.ServletException
getNormalizedToken
in interface AuthenticationHandler
request
- http request to obtain attributes from and to pass into any local filter chains
requiredresponse
- http response to return http responses or redirectschain
- original filter chain (should not be called from your handler)resolve
- flag with true implying that credentials should be obtained, false implying
return if no credentials are found.javax.servlet.ServletException
public HandlerResult handleError(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain) throws javax.servlet.ServletException
AuthenticationHandler
handleError
in interface AuthenticationHandler
servletRequest
- htt http response to return http responses or redirectsjavax.servlet.ServletException
public void setSessionFactory(SessionFactory sessionFactory)
public void setUserAgentCheck(boolean userAgentCheck)
This work is licensed under a Creative Commons Attribution 4.0 International License.