Package org.teiid.jboss.oauth
Class JWTBearerTokenLoginModule
- java.lang.Object
-
- org.jboss.security.auth.spi.AbstractServerLoginModule
-
- org.picketbox.datasource.security.AbstractPasswordCredentialLoginModule
-
- org.teiid.jboss.oauth.OAuth20LoginModule
-
- org.teiid.jboss.oauth.JWTBearerTokenLoginModule
-
- All Implemented Interfaces:
LoginModule
public class JWTBearerTokenLoginModule extends OAuth20LoginModule
-
-
Field Summary
-
Fields inherited from class org.teiid.jboss.oauth.OAuth20LoginModule
callerPrincipal, callerSubject, credential
-
-
Constructor Summary
Constructors Constructor Description JWTBearerTokenLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getJWTAssertion()
override if neededvoid
initialize(Subject subject, CallbackHandler handler, Map<String,?> sharedState, Map<String,?> options)
boolean
login()
-
Methods inherited from class org.teiid.jboss.oauth.OAuth20LoginModule
commit, getAccessToken, getAccessTokenURI, getClientId, getClientSecret, getCredential, getIdentity, getRefreshToken, getRoleSets, setAccessToken, setAccessTokenURI, setClientId, setClientSecret, setCredential, setRefreshToken
-
Methods inherited from class org.picketbox.datasource.security.AbstractPasswordCredentialLoginModule
logout, removeCredentials
-
-
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler handler, Map<String,?> sharedState, Map<String,?> options)
- Specified by:
initialize
in interfaceLoginModule
- Overrides:
initialize
in classOAuth20LoginModule
-
login
public boolean login() throws LoginException
- Specified by:
login
in interfaceLoginModule
- Overrides:
login
in classOAuth20LoginModule
- Throws:
LoginException
-
getJWTAssertion
protected String getJWTAssertion() throws LoginException
override if needed- Returns:
- Throws:
LoginException
-
-