com.sun.identity.saml2.plugins
インタフェース IDPAuthnContextMapper


public interface IDPAuthnContextMapper

The interface IDPAuthnContextMapper creates an IDPAuthnContextInfo based 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.


メソッドの概要
 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.
 

メソッドの詳細

getIDPAuthnContextInfo

IDPAuthnContextInfo getIDPAuthnContextInfo(AuthnRequest authnRequest,
                                           String idpEntityID,
                                           String realm)
                                           throws SAML2Exception
Returns an IDPAuthnContextInfo object.

パラメータ:
authnRequest - the AuthnRequest from the Service Provider
idpEntityID - the Entity ID of the Identity Provider
realm - the realm to which the Identity Provider belongs
戻り値:
an IDPAuthnContextInfo object
例外:
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.

パラメータ:
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
戻り値:
true if the specified AuthnContextClassRef matches a list of requested AuthnContextClassRef

getAuthnContextFromAuthLevel

AuthnContext getAuthnContextFromAuthLevel(String authLevel,
                                          String realm,
                                          String idpEntityID)
                                          throws SAML2Exception
Returns AuthnContext that matches the authenticated level.

パラメータ:
authLevel - user authenticated level
realm - the realm to which the Identity Provider belongs
idpEntityID - the Entity ID of the Identity Provider
戻り値:
AuthnContext object that matches authenticated level.
例外:
SAML2Exception - if an error occurs.