|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.provider.OAuth2Authentication
public class OAuth2Authentication
An OAuth 2 authentication token can contain two authentications: one for the client and one for the user. Since some OAuth authorization grants don't require user authentication, the user authentication may be null.
| Constructor Summary | |
|---|---|
OAuth2Authentication(OAuth2Request clientAuthentication,
org.springframework.security.core.Authentication userAuthentication)
Construct an OAuth 2 authentication. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Object |
getCredentials()
|
OAuth2Request |
getOAuth2Request()
The authorization request containing details of the client application. |
Object |
getPrincipal()
|
org.springframework.security.core.Authentication |
getUserAuthentication()
The user authentication. |
int |
hashCode()
|
boolean |
isAuthenticated()
|
boolean |
isClientOnly()
Convenience method to check if there is a user associated with this token, or just a client application. |
| Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken |
|---|
eraseCredentials, getAuthorities, getDetails, getName, setAuthenticated, setDetails, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OAuth2Authentication(OAuth2Request clientAuthentication,
org.springframework.security.core.Authentication userAuthentication)
authorizationRequest - The authorization request (must not be null).userAuthentication - The user authentication (possibly null).| Method Detail |
|---|
public Object getCredentials()
public Object getPrincipal()
public boolean isClientOnly()
public OAuth2Request getOAuth2Request()
public org.springframework.security.core.Authentication getUserAuthentication()
public boolean isAuthenticated()
isAuthenticated in interface org.springframework.security.core.AuthenticationisAuthenticated in class org.springframework.security.authentication.AbstractAuthenticationTokenpublic boolean equals(Object o)
equals in interface Principalequals in class org.springframework.security.authentication.AbstractAuthenticationTokenpublic int hashCode()
hashCode in interface PrincipalhashCode in class org.springframework.security.authentication.AbstractAuthenticationToken
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||