Class GSSAcceptorLoginModule


  • public class GSSAcceptorLoginModule
    extends Object
    Kerberos login utility for the context acceptor, encapsulates a number of special options used to create a security context for the GSS acceptor, usually based on a keytab file.
    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • krbModule

        @Nullable
        private LoginModule krbModule
        The JAAS login module to use.
      • state

        @Nonnull
        private Map<String,​String> state
        Hashtable to hold state of the JAAS login module.
      • options

        @Nonnull
        private Map<String,​String> options
        Options for the JAAS login module.
    • Constructor Detail

      • GSSAcceptorLoginModule

        public GSSAcceptorLoginModule​(@Nonnull
                                      KerberosRealmSettings realmSettings,
                                      boolean refreshKrb5Config,
                                      @Nonnull @NotEmpty
                                      String loginModuleClassName)
        Constructor.
        Parameters:
        realmSettings - the settings of the realm
        refreshKrb5Config - whether to set the JAAS login module's option "refreshKrb5Config"
        loginModuleClassName - the JAAS login module to use
    • Method Detail

      • login

        public Subject login()
                      throws LoginException
        Execute the login and return a Subject for the acceptor identity.
        Returns:
        the GSS acceptor Subject
        Throws:
        LoginException - if an error occurs