public interface IAuthorizationContext
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHSCHEME_BASIC |
static String |
AUTHSCHEME_OAUTH |
| Modifier and Type | Method and Description |
|---|---|
IAuthorizationDetails |
getAuthorizationDetails()
Retrieve the authorization details for a server
|
String |
getAuthScheme()
The authorization scope if it can be determined.
|
String |
getExpiresIn()
Time in ??
|
String |
getPassword()
Password to use to authenticate to retrieve a token
|
String |
getToken()
Token to use for authentication.
|
IUser |
getUser()
The authorized user if it can be found for this token
|
String |
getUserName()
A username to use for authenticating
|
boolean |
isAuthorized()
This can trigger a remote call if a user has not attempted to authorize
previously
|
void |
setPassword(String password)
Password to use to authenticate to retrieve a token
|
void |
setToken(String token)
The token to try and use for communication to the apiserver
|
void |
setUserName(String userName)
A username to use for authenticating
|
static final String AUTHSCHEME_BASIC
static final String AUTHSCHEME_OAUTH
IUser getUser()
boolean isAuthorized()
String getAuthScheme()
String getToken()
void setToken(String token)
void setUserName(String userName)
String getUserName()
void setPassword(String password)
String getPassword()
String getExpiresIn()
IAuthorizationDetails getAuthorizationDetails()
Copyright © 2020 Red Hat, Inc. All Rights Reserved.