Package org.opennms.container.jaas
Class OpenNMSLoginModule
- java.lang.Object
-
- org.apache.karaf.jaas.modules.AbstractKarafLoginModule
-
- org.opennms.container.jaas.OpenNMSLoginModule
-
- All Implemented Interfaces:
LoginModule
,LoginHandler
,OpenNMSLoginHandler
public class OpenNMSLoginModule extends org.apache.karaf.jaas.modules.AbstractKarafLoginModule implements OpenNMSLoginHandler
-
-
Constructor Summary
Constructors Constructor Description OpenNMSLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
abort()
CallbackHandler
callbackHandler()
Set<Principal>
createPrincipals(org.springframework.security.core.GrantedAuthority authority)
void
initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
boolean
login()
boolean
logout()
Set<Principal>
principals()
boolean
requiresAdminRole()
void
setPrincipals(Set<Principal> principals)
void
setUser(String user)
SpringSecurityUserDao
springSecurityUserDao()
String
user()
UserConfig
userConfig()
-
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
- Specified by:
initialize
in interfaceLoginModule
-
login
public boolean login() throws LoginException
- Specified by:
login
in interfaceLoginModule
- Throws:
LoginException
-
abort
public boolean abort() throws LoginException
- Specified by:
abort
in interfaceLoginModule
- Overrides:
abort
in classorg.apache.karaf.jaas.modules.AbstractKarafLoginModule
- Throws:
LoginException
-
logout
public boolean logout() throws LoginException
- Specified by:
logout
in interfaceLoginModule
- Overrides:
logout
in classorg.apache.karaf.jaas.modules.AbstractKarafLoginModule
- Throws:
LoginException
-
callbackHandler
public CallbackHandler callbackHandler()
- Specified by:
callbackHandler
in interfaceLoginHandler
-
userConfig
public UserConfig userConfig()
- Specified by:
userConfig
in interfaceLoginHandler
-
springSecurityUserDao
public SpringSecurityUserDao springSecurityUserDao()
- Specified by:
springSecurityUserDao
in interfaceLoginHandler
-
user
public String user()
- Specified by:
user
in interfaceLoginHandler
-
setUser
public void setUser(String user)
- Specified by:
setUser
in interfaceLoginHandler
-
createPrincipals
public Set<Principal> createPrincipals(org.springframework.security.core.GrantedAuthority authority)
- Specified by:
createPrincipals
in interfaceLoginHandler
-
principals
public Set<Principal> principals()
- Specified by:
principals
in interfaceLoginHandler
-
setPrincipals
public void setPrincipals(Set<Principal> principals)
- Specified by:
setPrincipals
in interfaceLoginHandler
-
requiresAdminRole
public boolean requiresAdminRole()
- Specified by:
requiresAdminRole
in interfaceOpenNMSLoginHandler
-
-