public class AuthorizationResource extends AbstractOpenShiftResource implements IAuthorization
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequestNO_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, setLinksclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCreationLog, getMessages, hasCreationLogprotected AuthorizationResource(APIResource api, AuthorizationResourceDTO authorizationDTO)
public void refresh()
throws OpenShiftException
IAuthorizationrefresh in interface IAuthorizationrefresh in interface IOpenShiftResourceOpenShiftExceptionpublic void destroy()
throws OpenShiftException
IAuthorizationdestroy in interface IAuthorizationOpenShiftExceptionpublic String getId()
IAuthorizationgetId in interface IAuthorizationpublic String getNote()
IAuthorizationgetNote in interface IAuthorizationpublic String getScopes()
IAuthorizationgetScopes in interface IAuthorizationpublic String getToken()
IAuthorizationgetToken in interface IAuthorizationpublic int getExpiresIn()
IAuthorizationgetExpiresIn in interface IAuthorizationCopyright © 2016 JBoss by Red Hat. All rights reserved.