public class AuthorizationResource extends AbstractOpenShiftResource implements IAuthorization
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest
NO_EXPIRES_IN, SCOPE_READ, SCOPE_SESSION, SCOPE_USERINFO
Modifier | Constructor and Description |
---|---|
protected |
AuthorizationResource(APIResource api,
AuthorizationResourceDTO authorizationDTO) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys this authorization
|
int |
getExpiresIn()
Returns the total time in seconds before this authorization expires.
|
String |
getId()
Returns the unique id for this authorization.
|
String |
getNote()
authorization note
|
String |
getScopes()
returns the scope of the authorization token to determine type of access.
|
String |
getToken()
Returns authorization string that contains user credentials.
|
void |
refresh()
Refreshes the authorization by reloading its content from OpenShift.
|
String |
toString() |
getCreationLog, getLink, getMessages, hasCreationLog, setLinks
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCreationLog, getMessages, hasCreationLog
protected AuthorizationResource(APIResource api, AuthorizationResourceDTO authorizationDTO)
public void refresh() throws OpenShiftException
IAuthorization
refresh
in interface IAuthorization
refresh
in interface IOpenShiftResource
OpenShiftException
public void destroy() throws OpenShiftException
IAuthorization
destroy
in interface IAuthorization
OpenShiftException
public String getId()
IAuthorization
getId
in interface IAuthorization
public String getNote()
IAuthorization
getNote
in interface IAuthorization
public String getScopes()
IAuthorization
getScopes
in interface IAuthorization
public String getToken()
IAuthorization
getToken
in interface IAuthorization
public int getExpiresIn()
IAuthorization
getExpiresIn
in interface IAuthorization
Copyright © 2019 JBoss by Red Hat. All rights reserved.