public class ConsumerAuthentication
extends org.springframework.security.authentication.AbstractAuthenticationToken
Constructor and Description |
---|
ConsumerAuthentication(ConsumerDetails consumerDetails,
ConsumerCredentials consumerCredentials) |
ConsumerAuthentication(ConsumerDetails consumerDetails,
ConsumerCredentials consumerCredentials,
Map<String,String> oauthParams) |
Modifier and Type | Method and Description |
---|---|
ConsumerCredentials |
getConsumerCredentials()
The credentials of this authentication.
|
ConsumerDetails |
getConsumerDetails()
The consumer details.
|
Object |
getCredentials()
The credentials.
|
String |
getName()
The name of this principal is the consumer key.
|
Map<String,String> |
getOAuthParameters()
Get the oauth parameters supplied in the request.
|
Object |
getPrincipal()
The principal (
consumer details ). |
boolean |
isAuthenticated()
Whether the signature has been validated.
|
boolean |
isSignatureValidated()
Whether the signature has been validated.
|
void |
setAuthenticated(boolean authenticated)
Whether the signature has been validated.
|
void |
setSignatureValidated(boolean signatureValidated)
Whether the signature has been validated.
|
public ConsumerAuthentication(ConsumerDetails consumerDetails, ConsumerCredentials consumerCredentials)
public ConsumerAuthentication(ConsumerDetails consumerDetails, ConsumerCredentials consumerCredentials, Map<String,String> oauthParams)
public Object getCredentials()
getConsumerCredentials()
public ConsumerCredentials getConsumerCredentials()
public Object getPrincipal()
consumer details
).getConsumerDetails()
public ConsumerDetails getConsumerDetails()
public Map<String,String> getOAuthParameters()
public String getName()
public boolean isSignatureValidated()
public void setSignatureValidated(boolean signatureValidated)
signatureValidated
- Whether the signature has been validated.public boolean isAuthenticated()
isAuthenticated
in interface org.springframework.security.core.Authentication
isAuthenticated
in class org.springframework.security.authentication.AbstractAuthenticationToken
public void setAuthenticated(boolean authenticated)
setAuthenticated
in interface org.springframework.security.core.Authentication
setAuthenticated
in class org.springframework.security.authentication.AbstractAuthenticationToken
authenticated
- Whether the signature has been validated.Copyright © 2019. All rights reserved.