Package com.sun.identity.saml2.plugins
Class DefaultIDPAuthnContextMapper
- java.lang.Object
-
- com.sun.identity.saml2.plugins.DefaultIDPAuthnContextMapper
-
- All Implemented Interfaces:
IDPAuthnContextMapper
public class DefaultIDPAuthnContextMapper extends Object implements IDPAuthnContextMapper
This class is an out of the box default implementation of interfaceIDPAuthnContextMapper.
-
-
Field Summary
Fields Modifier and Type Field Description static SAML2MetaManagermetaManager
-
Constructor Summary
Constructors Constructor Description DefaultIDPAuthnContextMapper()Constructor
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
metaManager
public static SAML2MetaManager metaManager
-
-
Method Detail
-
getIDPAuthnContextInfo
public IDPAuthnContextInfo getIDPAuthnContextInfo(AuthnRequest authnRequest, String idpEntityID, String realm) throws SAML2Exception
Returns anIDPAuthnContextInfoobject.- Specified by:
getIDPAuthnContextInfoin interfaceIDPAuthnContextMapper- 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.
-
getAuthnContextFromAuthLevel
public AuthnContext getAuthnContextFromAuthLevel(String authLevel, String realm, String idpEntityID) throws SAML2Exception
ReturnsAuthnContextthat matches the authenticated level.- Specified by:
getAuthnContextFromAuthLevelin interfaceIDPAuthnContextMapper- 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. Return default AuthnContext if authLevel isnull.- Throws:
SAML2Exception- if an error occurs.
-
isAuthnContextMatching
public boolean isAuthnContextMatching(List requestedACClassRefs, String acClassRef, String comparison, String realm, String idpEntityID)
Returns true if the specified AuthnContextClassRef matches a list of requested AuthnContextClassRef.- Specified by:
isAuthnContextMatchingin interfaceIDPAuthnContextMapper- 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
-
-