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, 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 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 © 2018 JBoss by Red Hat. All rights reserved.