public class DefaultIDPAuthnContextMapper extends Object implements IDPAuthnContextMapper
IDPAuthnContextMapper
.Modifier and Type | Field and Description |
---|---|
static SAML2MetaManager |
metaManager |
Constructor and Description |
---|
DefaultIDPAuthnContextMapper()
Constructor
|
Modifier and Type | Method and Description |
---|---|
AuthnContext |
getAuthnContextFromAuthLevel(String authLevel,
String realm,
String idpEntityID)
Returns
AuthnContext that matches the authenticated level. |
IDPAuthnContextInfo |
getIDPAuthnContextInfo(AuthnRequest authnRequest,
String idpEntityID,
String realm)
Returns an
IDPAuthnContextInfo object. |
boolean |
isAuthnContextMatching(List requestedACClassRefs,
String acClassRef,
String comparison,
String realm,
String idpEntityID)
Returns true if the specified AuthnContextClassRef matches a list of
requested AuthnContextClassRef.
|
public static SAML2MetaManager metaManager
public IDPAuthnContextInfo getIDPAuthnContextInfo(AuthnRequest authnRequest, String idpEntityID, String realm) throws SAML2Exception
IDPAuthnContextInfo
object.getIDPAuthnContextInfo
in interface IDPAuthnContextMapper
authnRequest
- the AuthnRequest
from the
Service ProvideridpEntityID
- the Entity ID of the Identity Providerrealm
- the realm to which the Identity Provider belongsIDPAuthnContextInfo
objectSAML2Exception
- if an error occurs.public AuthnContext getAuthnContextFromAuthLevel(String authLevel, String realm, String idpEntityID) throws SAML2Exception
AuthnContext
that matches the authenticated level.getAuthnContextFromAuthLevel
in interface IDPAuthnContextMapper
authLevel
- user authenticated levelrealm
- the realm to which the Identity Provider belongsidpEntityID
- the Entity ID of the Identity ProviderAuthnContext
object that matches authenticated
level. Return default AuthnContext if authLevel is null
.SAML2Exception
- if an error occurs.public boolean isAuthnContextMatching(List requestedACClassRefs, String acClassRef, String comparison, String realm, String idpEntityID)
isAuthnContextMatching
in interface IDPAuthnContextMapper
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 ProviderCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.