public class OAuth10LoginModule
extends org.picketbox.datasource.security.AbstractPasswordCredentialLoginModule
Modifier and Type | Field and Description |
---|---|
protected Principal |
callerPrincipal |
protected Subject |
callerSubject |
protected OAuthCredential |
credential |
Constructor and Description |
---|
OAuth10LoginModule() |
Modifier and Type | Method and Description |
---|---|
boolean |
commit() |
String |
getAccessKey() |
String |
getAccessSecret() |
String |
getConsumerKey() |
String |
getConsumerSecret() |
OAuthCredential |
getCredential() |
protected Principal |
getIdentity() |
protected Group[] |
getRoleSets() |
void |
initialize(Subject subject,
CallbackHandler handler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
void |
setAccessKey(String accessKey) |
void |
setAccessSecret(String accessSecret) |
void |
setConsumerKey(String consumerKey) |
void |
setConsumerSecret(String consumerSecret) |
void |
setCredential(OAuthCredential credential) |
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 String getConsumerKey()
public void setConsumerKey(String consumerKey)
public String getConsumerSecret()
public void setConsumerSecret(String consumerSecret)
public String getAccessKey()
public void setAccessKey(String accessKey)
public String getAccessSecret()
public void setAccessSecret(String accessSecret)
public OAuthCredential getCredential()
public void setCredential(OAuthCredential credential)
Copyright © 2019. All rights reserved.