public class OAuth20LoginModule
extends org.picketbox.datasource.security.AbstractPasswordCredentialLoginModule
Modifier and Type | Field and Description |
---|---|
protected Principal |
callerPrincipal |
protected Subject |
callerSubject |
protected OAuthCredential |
credential |
Constructor and Description |
---|
OAuth20LoginModule() |
Modifier and Type | Method and Description |
---|---|
boolean |
commit() |
String |
getAccessToken() |
String |
getAccessTokenURI() |
String |
getClientId() |
String |
getClientSecret() |
OAuthCredential |
getCredential() |
protected Principal |
getIdentity() |
String |
getRefreshToken() |
protected Group[] |
getRoleSets() |
void |
initialize(Subject subject,
CallbackHandler handler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
void |
setAccessToken(String accessToken) |
void |
setAccessTokenURI(String accessTokenURI) |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setCredential(OAuthCredential credential) |
void |
setRefreshToken(String refreshToken) |
logout, removeCredentials
protected OAuthCredential credential
protected Subject callerSubject
protected Principal callerPrincipal
public void initialize(Subject subject, CallbackHandler handler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
initialize
in class org.jboss.security.auth.spi.AbstractServerLoginModule
public boolean login() throws LoginException
login
in interface LoginModule
login
in class org.jboss.security.auth.spi.AbstractServerLoginModule
LoginException
protected Principal getIdentity()
getIdentity
in class org.jboss.security.auth.spi.AbstractServerLoginModule
protected Group[] getRoleSets() throws LoginException
getRoleSets
in class org.jboss.security.auth.spi.AbstractServerLoginModule
LoginException
public boolean commit() throws LoginException
commit
in interface LoginModule
commit
in class org.jboss.security.auth.spi.AbstractServerLoginModule
LoginException
public OAuthCredential getCredential()
public void setCredential(OAuthCredential credential)
public String getClientId()
public void setClientId(String clientId)
public String getClientSecret()
public void setClientSecret(String clientSecret)
public String getRefreshToken()
public void setRefreshToken(String refreshToken)
public String getAccessTokenURI()
public void setAccessTokenURI(String accessTokenURI)
public String getAccessToken()
public void setAccessToken(String accessToken)
Copyright © 2018 JBoss by Red Hat. All rights reserved.