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, removeCredentialsprotected OAuthCredential credential
protected Subject callerSubject
protected Principal callerPrincipal
public void initialize(Subject subject, CallbackHandler handler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModuleinitialize in class org.jboss.security.auth.spi.AbstractServerLoginModulepublic boolean login()
throws LoginException
login in interface LoginModulelogin in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionprotected Principal getIdentity()
getIdentity in class org.jboss.security.auth.spi.AbstractServerLoginModuleprotected Group[] getRoleSets() throws LoginException
getRoleSets in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionpublic boolean commit()
throws LoginException
commit in interface LoginModulecommit in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionpublic 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.