public class BaseConsumerDetails extends Object implements ResourceSpecificConsumerDetails, ExtraTrustConsumerDetails
Constructor and Description |
---|
BaseConsumerDetails() |
Modifier and Type | Method and Description |
---|---|
List<org.springframework.security.core.GrantedAuthority> |
getAuthorities()
The base authorities for this consumer.
|
String |
getConsumerKey()
The consumer key.
|
String |
getConsumerName()
The name of the consumer.
|
String |
getResourceDescription()
The description of the resource.
|
String |
getResourceName()
The name of the resource.
|
SignatureSecret |
getSignatureSecret()
The signature secret.
|
boolean |
isRequiredToObtainAuthenticatedToken()
Whether this consumer is required to obtain an authenticated oauth token.
|
void |
setAuthorities(List<org.springframework.security.core.GrantedAuthority> authorities)
The base authorities for this consumer.
|
void |
setConsumerKey(String consumerKey)
The consumer key.
|
void |
setConsumerName(String consumerName)
The name of the consumer.
|
void |
setRequiredToObtainAuthenticatedToken(boolean requiredToObtainAuthenticatedToken)
Whether this consumer is required to obtain an authenticated oauth token.
|
void |
setResourceDescription(String resourceDescription)
The description of the resource.
|
void |
setResourceName(String resourceName)
The name of the resource.
|
void |
setSignatureSecret(SignatureSecret signatureSecret)
The signature secret.
|
public String getConsumerKey()
getConsumerKey
in interface ConsumerDetails
public void setConsumerKey(String consumerKey)
consumerKey
- The consumer key.public String getConsumerName()
getConsumerName
in interface ConsumerDetails
public void setConsumerName(String consumerName)
consumerName
- The name of the consumer.public SignatureSecret getSignatureSecret()
getSignatureSecret
in interface ConsumerDetails
public void setSignatureSecret(SignatureSecret signatureSecret)
signatureSecret
- The signature secret.public List<org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface ConsumerDetails
public void setAuthorities(List<org.springframework.security.core.GrantedAuthority> authorities)
authorities
- The base authorities for this consumer.public String getResourceName()
getResourceName
in interface ResourceSpecificConsumerDetails
public void setResourceName(String resourceName)
resourceName
- The name of the resource.public String getResourceDescription()
getResourceDescription
in interface ResourceSpecificConsumerDetails
public void setResourceDescription(String resourceDescription)
resourceDescription
- The description of the resource.public boolean isRequiredToObtainAuthenticatedToken()
isRequiredToObtainAuthenticatedToken
in interface ExtraTrustConsumerDetails
public void setRequiredToObtainAuthenticatedToken(boolean requiredToObtainAuthenticatedToken)
requiredToObtainAuthenticatedToken
- Whether this consumer is required to obtain an authenticated oauth token.Copyright © 2019. All rights reserved.