Class OAuthAccessToken
- java.lang.Object
-
- io.fabric8.openshift.api.model.OAuthAccessToken
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<OAuthAccessTokenBuilder>,io.fabric8.kubernetes.api.model.HasMetadata,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OAuthAccessToken extends Object implements io.fabric8.kubernetes.api.builder.Editable<OAuthAccessTokenBuilder>, io.fabric8.kubernetes.api.model.HasMetadata
OAuthAccessToken describes an OAuth access token. The name of a token must be prefixed with a `sha256~` string, must not contain "/" or "%" characters and must be at least 32 characters long.The name of the token is constructed from the actual token by sha256-hashing it and using URL-safe unpadded base64-encoding (as described in RFC4648) on the hashed result.
Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OAuthAccessToken()No args constructor for use in serializationOAuthAccessToken(String apiVersion, String authorizeToken, String clientName, Long expiresIn, Integer inactivityTimeoutSeconds, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, String redirectURI, String refreshToken, List<String> scopes, String userName, String userUID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuthAccessTokenBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApiVersion()APIVersion defines the versioned schema of this representation of an object.StringgetAuthorizeToken()authorizeToken contains the token that authorized this tokenStringgetClientName()clientName references the client that created this token.LonggetExpiresIn()expiresIn is the seconds from CreationTime before this token expires.IntegergetInactivityTimeoutSeconds()inactivityTimeoutSeconds is the value in seconds, from the CreationTimestamp, after which this token can no longer be used.StringgetKind()Kind is a string value representing the REST resource this object represents.io.fabric8.kubernetes.api.model.ObjectMetagetMetadata()OAuthAccessToken describes an OAuth access token.StringgetRedirectURI()redirectURI is the redirection associated with the token.StringgetRefreshToken()refreshToken is the value by which this token can be renewed.List<String>getScopes()scopes is an array of the requested scopes.StringgetUserName()userName is the user name associated with this tokenStringgetUserUID()userUID is the unique UID associated with this tokenvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiVersion(String apiVersion)APIVersion defines the versioned schema of this representation of an object.voidsetAuthorizeToken(String authorizeToken)authorizeToken contains the token that authorized this tokenvoidsetClientName(String clientName)clientName references the client that created this token.voidsetExpiresIn(Long expiresIn)expiresIn is the seconds from CreationTime before this token expires.voidsetInactivityTimeoutSeconds(Integer inactivityTimeoutSeconds)inactivityTimeoutSeconds is the value in seconds, from the CreationTimestamp, after which this token can no longer be used.voidsetKind(String kind)Kind is a string value representing the REST resource this object represents.voidsetMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)OAuthAccessToken describes an OAuth access token.voidsetRedirectURI(String redirectURI)redirectURI is the redirection associated with the token.voidsetRefreshToken(String refreshToken)refreshToken is the value by which this token can be renewed.voidsetScopes(List<String> scopes)scopes is an array of the requested scopes.voidsetUserName(String userName)userName is the user name associated with this tokenvoidsetUserUID(String userUID)userUID is the unique UID associated with this tokenOAuthAccessTokenBuildertoBuilder()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.api.model.HasMetadata
addFinalizer, addOwnerReference, addOwnerReference, getFinalizers, getFullResourceName, getOwnerReferenceFor, getOwnerReferenceFor, getPlural, getSingular, hasFinalizer, hasOwnerReferenceFor, hasOwnerReferenceFor, initNameAndNamespaceFrom, isFinalizerValid, isMarkedForDeletion, optionalMetadata, removeFinalizer, removeOwnerReference, removeOwnerReference
-
-
-
-
Constructor Detail
-
OAuthAccessToken
public OAuthAccessToken()
No args constructor for use in serialization
-
OAuthAccessToken
public OAuthAccessToken(String apiVersion, String authorizeToken, String clientName, Long expiresIn, Integer inactivityTimeoutSeconds, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, String redirectURI, String refreshToken, List<String> scopes, String userName, String userUID)
-
-
Method Detail
-
getApiVersion
public String getApiVersion()
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
getApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setApiVersion
public void setApiVersion(String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
setApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getAuthorizeToken
public String getAuthorizeToken()
authorizeToken contains the token that authorized this token
-
setAuthorizeToken
public void setAuthorizeToken(String authorizeToken)
authorizeToken contains the token that authorized this token
-
getClientName
public String getClientName()
clientName references the client that created this token.
-
setClientName
public void setClientName(String clientName)
clientName references the client that created this token.
-
getExpiresIn
public Long getExpiresIn()
expiresIn is the seconds from CreationTime before this token expires.
-
setExpiresIn
public void setExpiresIn(Long expiresIn)
expiresIn is the seconds from CreationTime before this token expires.
-
getInactivityTimeoutSeconds
public Integer getInactivityTimeoutSeconds()
inactivityTimeoutSeconds is the value in seconds, from the CreationTimestamp, after which this token can no longer be used. The value is automatically incremented when the token is used.
-
setInactivityTimeoutSeconds
public void setInactivityTimeoutSeconds(Integer inactivityTimeoutSeconds)
inactivityTimeoutSeconds is the value in seconds, from the CreationTimestamp, after which this token can no longer be used. The value is automatically incremented when the token is used.
-
getKind
public String getKind()
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Specified by:
getKindin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setKind
public void setKind(String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getMetadata
public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata()
OAuthAccessToken describes an OAuth access token. The name of a token must be prefixed with a `sha256~` string, must not contain "/" or "%" characters and must be at least 32 characters long.The name of the token is constructed from the actual token by sha256-hashing it and using URL-safe unpadded base64-encoding (as described in RFC4648) on the hashed result.
Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- Specified by:
getMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setMetadata
public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
OAuthAccessToken describes an OAuth access token. The name of a token must be prefixed with a `sha256~` string, must not contain "/" or "%" characters and must be at least 32 characters long.The name of the token is constructed from the actual token by sha256-hashing it and using URL-safe unpadded base64-encoding (as described in RFC4648) on the hashed result.
Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- Specified by:
setMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getRedirectURI
public String getRedirectURI()
redirectURI is the redirection associated with the token.
-
setRedirectURI
public void setRedirectURI(String redirectURI)
redirectURI is the redirection associated with the token.
-
getRefreshToken
public String getRefreshToken()
refreshToken is the value by which this token can be renewed. Can be blank.
-
setRefreshToken
public void setRefreshToken(String refreshToken)
refreshToken is the value by which this token can be renewed. Can be blank.
-
getUserName
public String getUserName()
userName is the user name associated with this token
-
setUserName
public void setUserName(String userName)
userName is the user name associated with this token
-
getUserUID
public String getUserUID()
userUID is the unique UID associated with this token
-
setUserUID
public void setUserUID(String userUID)
userUID is the unique UID associated with this token
-
edit
public OAuthAccessTokenBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<OAuthAccessTokenBuilder>
-
toBuilder
public OAuthAccessTokenBuilder toBuilder()
-
-