public class OAuth2Authentication
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
OAuth2Authentication(com.vordel.circuit.oauth.provider.AuthorizationRequest authorizationRequest, java.lang.String userAuthentication)
Construct an OAuth 2 authentication.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
com.vordel.circuit.oauth.provider.AuthorizationRequest |
getAuthorizationRequest()
The authorization request containing details of the client application.
|
java.lang.Object |
getPrincipal() |
java.lang.String |
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.
|
static void |
trace(OAuth2Authentication oauth2AuthN, int level) |
public OAuth2Authentication(com.vordel.circuit.oauth.provider.AuthorizationRequest authorizationRequest,
java.lang.String userAuthentication)
authorizationRequest - The authorization request (must not be null).userAuthentication - The user authentication (possibly null).public java.lang.Object getPrincipal()
public boolean isClientOnly()
public com.vordel.circuit.oauth.provider.AuthorizationRequest getAuthorizationRequest()
public java.lang.String getUserAuthentication()
public boolean isAuthenticated()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static void trace(OAuth2Authentication oauth2AuthN, int level)
This documentation and all its contents and graphics, copyright � 1999 - 2011 Vordel