Class AuthCredentialToSubjectResolverManager


  • @Immutable
    public final class AuthCredentialToSubjectResolverManager
    extends Object
    This handler is used to resolve a subject from validated credentials. This is necessary because the IAuthCredentials interface does not state anything about the subject by default.
    Author:
    Philip Helger
    • Method Detail

      • getAuthCredentialToSubjectResolverCount

        @Nonnegative
        public static int getAuthCredentialToSubjectResolverCount()
        Returns:
        The number of registered handlers. Always ≥ 0.
      • getSubjectFromCredentials

        @Nullable
        public static IAuthSubject getSubjectFromCredentials​(@Nonnull
                                                             IAuthCredentials aCredentials)
        Resolve the IAuthSubject from the specified credentials.
        Parameters:
        aCredentials - The credentials to be transformed.
        Returns:
        null if no subject matches the specified credentials.