public class BaseOAuth2ProtectedResourceDetails extends Object implements OAuth2ProtectedResourceDetails
| Constructor and Description |
|---|
BaseOAuth2ProtectedResourceDetails() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAccessTokenUri()
The URL to use to obtain an OAuth2 access token.
|
AuthenticationScheme |
getAuthenticationScheme()
Get the bearer token method for this resource.
|
AuthenticationScheme |
getClientAuthenticationScheme()
The scheme to use to authenticate the client.
|
String |
getClientId()
The client identifier to use for this protected resource.
|
String |
getClientSecret()
The client secret.
|
String |
getGrantType()
The grant type for obtaining an acces token for this resource.
|
String |
getId()
Get a unique identifier for these protected resource details.
|
List<String> |
getScope()
The scope of this resource.
|
String |
getTokenName()
The name of the bearer token.
|
int |
hashCode() |
boolean |
isAuthenticationRequired()
Whether a secret is required to obtain an access token to this resource.
|
boolean |
isClientOnly()
A flag to indicate that this resource is only to be used with client credentials, thus allowing access tokens to
be cached independent of a user's session.
|
boolean |
isScoped()
Whether this resource is limited to a specific scope.
|
void |
setAccessTokenUri(String accessTokenUri) |
void |
setAuthenticationScheme(AuthenticationScheme authorizationScheme) |
void |
setClientAuthenticationScheme(AuthenticationScheme clientAuthenticationScheme) |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setGrantType(String grantType) |
void |
setId(String id) |
void |
setScope(List<String> scope) |
void |
setTokenName(String tokenName) |
public String getId()
OAuth2ProtectedResourceDetailsgetId in interface OAuth2ProtectedResourceDetailspublic void setId(String id)
public String getClientId()
OAuth2ProtectedResourceDetailsgetClientId in interface OAuth2ProtectedResourceDetailspublic void setClientId(String clientId)
public String getAccessTokenUri()
OAuth2ProtectedResourceDetailsgetAccessTokenUri in interface OAuth2ProtectedResourceDetailspublic void setAccessTokenUri(String accessTokenUri)
public boolean isScoped()
OAuth2ProtectedResourceDetailsisScoped in interface OAuth2ProtectedResourceDetailspublic List<String> getScope()
OAuth2ProtectedResourceDetailsresource isn't scoped.getScope in interface OAuth2ProtectedResourceDetailspublic boolean isAuthenticationRequired()
OAuth2ProtectedResourceDetailsisAuthenticationRequired in interface OAuth2ProtectedResourceDetailspublic String getClientSecret()
OAuth2ProtectedResourceDetailssecret isn't required.getClientSecret in interface OAuth2ProtectedResourceDetailspublic void setClientSecret(String clientSecret)
public AuthenticationScheme getClientAuthenticationScheme()
OAuth2ProtectedResourceDetailsgetClientAuthenticationScheme in interface OAuth2ProtectedResourceDetailspublic void setClientAuthenticationScheme(AuthenticationScheme clientAuthenticationScheme)
public boolean isClientOnly()
OAuth2ProtectedResourceDetailsisClientOnly in interface OAuth2ProtectedResourceDetailspublic AuthenticationScheme getAuthenticationScheme()
OAuth2ProtectedResourceDetailsgetAuthenticationScheme in interface OAuth2ProtectedResourceDetailspublic void setAuthenticationScheme(AuthenticationScheme authorizationScheme)
public String getTokenName()
OAuth2ProtectedResourceDetailsgetTokenName in interface OAuth2ProtectedResourceDetailspublic void setTokenName(String tokenName)
public String getGrantType()
OAuth2ProtectedResourceDetailsgetGrantType in interface OAuth2ProtectedResourceDetailspublic void setGrantType(String grantType)
Copyright © 2019. All rights reserved.