Class OpenAMAuthFactory


  • public class OpenAMAuthFactory
    extends Object
    Creation of ContextHolder. This aids with testing the OpenAMAuthHandler
    • Constructor Detail

      • OpenAMAuthFactory

        public OpenAMAuthFactory()
    • Method Detail

      • getAuthContext

        public AuthContext getAuthContext​(String realm)
                                   throws AuthLoginException
        Return on OpenAM auth context for the requested realm.
        Parameters:
        realm - the realm to which the returned AuthContext should relate.
        Returns:
        a newly created AuthContext that may be used to authenticate a subject against realm.
        Throws:
        AuthLoginException - - if AuthContext creation fails. This exception is kept for backward compatibility only.