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 IAuthorizationContext
public String getToken()
IAuthorizationContext
getToken
in interface IAuthorizationContext
public String getExpiresIn()
IAuthorizationContext
getExpiresIn
in interface IAuthorizationContext
public String getAuthScheme()
IAuthorizationContext
getAuthScheme
in interface IAuthorizationContext
public IUser getUser()
IAuthorizationContext
getUser
in interface IAuthorizationContext
Copyright © 2016 Red Hat, Inc. All rights reserved.