Class DefaultIDPAuthnContextMapper

    • Constructor Detail

      • DefaultIDPAuthnContextMapper

        public DefaultIDPAuthnContextMapper()
        Constructor
    • Method Detail

      • getAuthnContextFromAuthLevel

        public AuthnContext getAuthnContextFromAuthLevel​(String authLevel,
                                                         String realm,
                                                         String idpEntityID)
                                                  throws SAML2Exception
        Returns AuthnContext that matches the authenticated level.
        Specified by:
        getAuthnContextFromAuthLevel in interface IDPAuthnContextMapper
        Parameters:
        authLevel - user authenticated level
        realm - the realm to which the Identity Provider belongs
        idpEntityID - the Entity ID of the Identity Provider
        Returns:
        AuthnContext object that matches authenticated level. Return default AuthnContext if authLevel is null.
        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:
        isAuthnContextMatching in interface IDPAuthnContextMapper
        Parameters:
        requestedACClassRefs - a list of requested AuthnContextClassRef's
        acClassRef - AuthnContextClassRef
        comparison - the type of comparison
        realm - the realm to which the Identity Provider belongs
        idpEntityID - the Entity ID of the Identity Provider
        Returns:
        true if the specified AuthnContextClassRef matches a list of requested AuthnContextClassRef