public class AuthorizationContext extends Object implements IAuthorizationContext
AUTHSCHEME_BASIC, AUTHSCHEME_OAUTH| Constructor and Description |
|---|
AuthorizationContext(String scope) |
AuthorizationContext(String token,
String expires,
IUser user,
String scheme) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthScheme()
The authorization scope if it can be determined.
|
String |
getExpiresIn()
Time in ?? when the token expires.
|
String |
getToken()
Token to use for authentication.
|
IUser |
getUser()
The authorized user if it can be found for this token
|
boolean |
isAuthorized() |
public AuthorizationContext(String scope)
public boolean isAuthorized()
isAuthorized in interface IAuthorizationContextpublic String getToken()
IAuthorizationContextgetToken in interface IAuthorizationContextpublic String getExpiresIn()
IAuthorizationContextgetExpiresIn in interface IAuthorizationContextpublic String getAuthScheme()
IAuthorizationContextgetAuthScheme in interface IAuthorizationContextpublic IUser getUser()
IAuthorizationContextgetUser in interface IAuthorizationContextCopyright © 2016 Red Hat, Inc. All rights reserved.