Package com.sun.identity.saml2.plugins
Class IDPAuthnContextInfo
java.lang.Object
com.sun.identity.saml2.plugins.IDPAuthnContextInfo
The class
IDPAuthnContextInfo
consists of the mapping
between AuthnContextClassRef
and the actual
authentication mechanism at the Identity Provider.-
Constructor Summary
ConstructorsConstructorDescriptionIDPAuthnContextInfo
(AuthnContext authnContext, Set authnTypeAndValues, Integer authnLevel) The constructor.IDPAuthnContextInfo
(AuthnContext authnContext, Set authnTypeAndValues, Integer authnLevel, boolean requiresRedirectToAuth) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the returningAuthnContext
Returns the Authentication LevelReturns the set of authentication mechanismReturns a map of the authentication mechanism.boolean
Whether the AuthnContextInfo requires AM to redirect to auth service.
-
Constructor Details
-
IDPAuthnContextInfo
The constructor.- Parameters:
authnContext
- TheAuthnContext
that is returned to the requester.authnTypeAndValues
- The set of authentication mechanismauthnLevel
- The Authentication Level associated to the Authentication context
-
IDPAuthnContextInfo
public IDPAuthnContextInfo(AuthnContext authnContext, Set authnTypeAndValues, Integer authnLevel, boolean requiresRedirectToAuth) The constructor.- Parameters:
authnContext
- TheAuthnContext
that is returned to the requester.authnTypeAndValues
- The set of authentication mechanismauthnLevel
- The Authentication Level associated to the Authentication contextrequiresRedirectToAuth
- whether this Authentication context requires that the IDP redirect to auth
-
-
Method Details
-
getAuthnContext
Returns the returningAuthnContext
- Returns:
- the returning
AuthnContext
-
getAuthnTypeAndValues
Returns the set of authentication mechanism- Returns:
- the set of authentication mechanism
-
getAuthnTypeAndValuesAsMap
Returns a map of the authentication mechanism. -
getAuthnLevel
Returns the Authentication Level- Returns:
- the Authentication level
-
requiresRedirectionToAuth
public boolean requiresRedirectionToAuth()Whether the AuthnContextInfo requires AM to redirect to auth service. This is true if we have a service set directly on the remote SP, or we have a service specified via AuthnContext that has 'mustRun' set on the corresponding tree configuration.- Returns:
true
if SAML should redirect the user to authenticate, otherwise false
-