public class OAuth2Client extends Object implements Serializable
OAuth2Encrypter protect the client_secret in the persistence store.| Constructor and Description |
|---|
OAuth2Client() |
OAuth2Client(OAuth2Encrypter encrypter) |
| Modifier and Type | Method and Description |
|---|---|
OAuth2Client |
clone() |
boolean |
equals(Object obj) |
String[] |
getAllowedDomains()
gets the domains of allowed resource servers
|
String |
getAuthorizationUrl()
Returns authorization endpoint
|
String |
getClientAuthenticationType()
Returns client authentication type
|
String |
getClientId()
Returns client id.
|
byte[] |
getClientSecret()
Returns client secret
|
byte[] |
getEncryptedSecret()
Returns encrypted secret
|
OAuth2Encrypter |
getEncrypter() |
String |
getGadgetUri() |
String |
getGrantType() |
String |
getRedirectUri() |
String |
getServiceName() |
String |
getTokenUrl() |
OAuth2Accessor.Type |
getType() |
int |
hashCode() |
boolean |
isAllowModuleOverride() |
boolean |
isAuthorizationHeader() |
boolean |
isSharedToken() |
boolean |
isUrlParameter() |
void |
setAllowedDomains(String[] allowedDomains)
sets the domains of allowed resource servers
|
void |
setAllowModuleOverride(boolean alllowModuleOverride) |
void |
setAuthorizationHeader(boolean authorizationHeader) |
void |
setAuthorizationUrl(String authorizationUrl) |
void |
setClientAuthenticationType(String clientAuthenticationType) |
void |
setClientId(String clientId) |
void |
setClientSecret(byte[] secret) |
void |
setEncryptedSecret(byte[] encryptedSecret) |
void |
setGadgetUri(String gadgetUri) |
void |
setGrantType(String grantType) |
void |
setRedirectUri(String redirectUri) |
void |
setServiceName(String serviceName) |
void |
setSharedToken(boolean sharedToken) |
void |
setTokenUrl(String tokenUrl) |
void |
setType(OAuth2Accessor.Type type) |
void |
setUrlParameter(boolean urlParameter) |
String |
toString() |
public OAuth2Client()
@Inject public OAuth2Client(OAuth2Encrypter encrypter)
public String getAuthorizationUrl()
public String getClientAuthenticationType()
public String getClientId()
public byte[] getClientSecret()
public byte[] getEncryptedSecret()
public OAuth2Encrypter getEncrypter()
public String getGadgetUri()
public String getGrantType()
public String getRedirectUri()
public String getServiceName()
public String getTokenUrl()
public OAuth2Accessor.Type getType()
public boolean isAllowModuleOverride()
public boolean isAuthorizationHeader()
public boolean isSharedToken()
public boolean isUrlParameter()
public void setAllowModuleOverride(boolean alllowModuleOverride)
public void setAuthorizationHeader(boolean authorizationHeader)
public void setAuthorizationUrl(String authorizationUrl)
public void setClientAuthenticationType(String clientAuthenticationType)
public void setClientId(String clientId)
public void setClientSecret(byte[] secret)
throws OAuth2EncryptionException
OAuth2EncryptionExceptionpublic void setEncryptedSecret(byte[] encryptedSecret)
throws OAuth2EncryptionException
OAuth2EncryptionExceptionpublic void setGadgetUri(String gadgetUri)
public void setGrantType(String grantType)
public void setRedirectUri(String redirectUri)
public void setServiceName(String serviceName)
public void setSharedToken(boolean sharedToken)
public void setTokenUrl(String tokenUrl)
public void setType(OAuth2Accessor.Type type)
public void setUrlParameter(boolean urlParameter)
public void setAllowedDomains(String[] allowedDomains)
allowedDomains - public String[] getAllowedDomains()
public OAuth2Client clone()
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.