Class GSSAcceptorLoginModule
java.lang.Object
net.shibboleth.idp.authn.spnego.impl.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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
GSSAcceptorLoginModule.UsernamePasswordCallbackHandler
A JAAS username and password CallbackHandler. -
Field Summary
Fields Modifier and Type Field Description private LoginModule
krbModule
The JAAS login module to use.private org.slf4j.Logger
log
Class logger.private Map<String,String>
options
Options for the JAAS login module.private KerberosRealmSettings
realm
The realm settings.private Map<String,String>
state
Hashtable to hold state of the JAAS login module. -
Constructor Summary
Constructors Constructor Description GSSAcceptorLoginModule(KerberosRealmSettings realmSettings, boolean refreshKrb5Config, String loginModuleClassName)
Constructor. -
Method Summary
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
krbModule
The JAAS login module to use. -
state
Hashtable to hold state of the JAAS login module. -
options
Options for the JAAS login module. -
realm
The realm settings.
-
-
Constructor Details
-
GSSAcceptorLoginModule
public GSSAcceptorLoginModule(@Nonnull KerberosRealmSettings realmSettings, boolean refreshKrb5Config, @Nonnull @NotEmpty String loginModuleClassName)Constructor.- Parameters:
realmSettings
- the settings of the realmrefreshKrb5Config
- whether to set the JAAS login module's option "refreshKrb5Config"loginModuleClassName
- the JAAS login module to use
-
-
Method Details
-
login
Execute the login and return a Subject for the acceptor identity.- Returns:
- the GSS acceptor Subject
- Throws:
LoginException
- if an error occurs
-
logout
Perform a JAAS logout.- Throws:
LoginException
- if an error occurs
-