Package com.sun.identity.saml2.plugins
Interface IDPAuthnContextMapper
-
- All Known Implementing Classes:
DefaultIDPAuthnContextMapper
public interface IDPAuthnContextMapperThe interfaceIDPAuthnContextMappercreates anIDPAuthnContextInfobased on the RequestAuthnContext from the AuthnRequest sent by a Service Provider and the AuthnContext configuration at the IDP entity config. The implementation of this class will be used by the IDP to find out the authentication mechaism and set the AuthnContext in the Assertion.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthnContextgetAuthnContextFromAuthLevel(String authLevel, String realm, String idpEntityID)ReturnsAuthnContextthat matches the authenticated level.IDPAuthnContextInfogetIDPAuthnContextInfo(AuthnRequest authnRequest, String idpEntityID, String realm)Returns anIDPAuthnContextInfoobject.booleanisAuthnContextMatching(List requestedACClassRefs, String acClassRef, String comparison, String realm, String idpEntityID)Returns true if the specified AuthnContextClassRef matches a list of requested AuthnContextClassRef.
-
-
-
Method Detail
-
getIDPAuthnContextInfo
IDPAuthnContextInfo getIDPAuthnContextInfo(AuthnRequest authnRequest, String idpEntityID, String realm) throws SAML2Exception
Returns anIDPAuthnContextInfoobject.- Parameters:
authnRequest- theAuthnRequestfrom the Service ProvideridpEntityID- the Entity ID of the Identity Providerrealm- the realm to which the Identity Provider belongs- Returns:
- an
IDPAuthnContextInfoobject - Throws:
SAML2Exception- if an error occurs.
-
isAuthnContextMatching
boolean isAuthnContextMatching(List requestedACClassRefs, String acClassRef, String comparison, String realm, String idpEntityID)
Returns true if the specified AuthnContextClassRef matches a list of requested AuthnContextClassRef.- Parameters:
requestedACClassRefs- a list of requested AuthnContextClassRef'sacClassRef- AuthnContextClassRefcomparison- the type of comparisonrealm- the realm to which the Identity Provider belongsidpEntityID- the Entity ID of the Identity Provider- Returns:
- true if the specified AuthnContextClassRef matches a list of requested AuthnContextClassRef
-
getAuthnContextFromAuthLevel
AuthnContext getAuthnContextFromAuthLevel(String authLevel, String realm, String idpEntityID) throws SAML2Exception
ReturnsAuthnContextthat matches the authenticated level.- Parameters:
authLevel- user authenticated levelrealm- the realm to which the Identity Provider belongsidpEntityID- the Entity ID of the Identity Provider- Returns:
AuthnContextobject that matches authenticated level.- Throws:
SAML2Exception- if an error occurs.
-
-