Package org.gluu.oxauth.client
Class RegisterResponse
- java.lang.Object
-
- org.gluu.oxauth.client.BaseResponse
-
- org.gluu.oxauth.client.BaseResponseWithErrors<RegisterErrorResponseType>
-
- org.gluu.oxauth.client.RegisterResponse
-
public class RegisterResponse extends BaseResponseWithErrors<RegisterErrorResponseType>
Represents a register response received from the authorization server.- Version:
- July 18, 2017
- Author:
- Javier Rojas Blum
-
-
Field Summary
-
Fields inherited from class org.gluu.oxauth.client.BaseResponse
entity, headers, location, status
-
-
Constructor Summary
Constructors Constructor Description RegisterResponse()
RegisterResponse(javax.ws.rs.core.Response clientResponse)
Constructs a register response.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RegisterErrorResponseType
fromString(java.lang.String p_string)
java.util.Map<java.lang.String,java.lang.String>
getClaims()
java.lang.String
getClientId()
Returns the client's identifier.java.util.Date
getClientIdIssuedAt()
java.lang.String
getClientSecret()
Returns the client's password.java.util.Date
getClientSecretExpiresAt()
Return the expiration date after which the client's account will expire.java.util.List<GrantType>
getGrantTypes()
java.lang.String
getRegistrationAccessToken()
java.lang.String
getRegistrationClientUri()
java.util.List<ResponseType>
getResponseTypes()
void
injectDataFromJson()
void
injectDataFromJson(java.lang.String p_json)
void
setClaims(java.util.Map<java.lang.String,java.lang.String> claims)
void
setClientId(java.lang.String clientId)
Sets the client's identifier.void
setClientIdIssuedAt(java.util.Date clientIdIssuedAt)
void
setClientSecret(java.lang.String clientSecret)
Sets the client's password.void
setClientSecretExpiresAt(java.util.Date clientSecretExpiresAt)
Sets the expiration date after which the client's account will expire.void
setGrantTypes(java.util.List<GrantType> grantTypes)
void
setRegistrationAccessToken(java.lang.String registrationAccessToken)
void
setRegistrationClientUri(java.lang.String registrationClientUri)
void
setResponseTypes(java.util.List<ResponseType> responseTypes)
static RegisterResponse
valueOf(java.lang.String p_json)
-
Methods inherited from class org.gluu.oxauth.client.BaseResponseWithErrors
getErrorDescription, getErrorType, getErrorUri, injectErrorIfExistSilently, injectErrorIfExistSilently, setErrorDescription, setErrorType, setErrorUri
-
Methods inherited from class org.gluu.oxauth.client.BaseResponse
getEntity, getHeaders, getLocation, getStatus, setEntity, setHeaders, setLocation, setStatus
-
-
-
-
Method Detail
-
fromString
public RegisterErrorResponseType fromString(java.lang.String p_string)
- Specified by:
fromString
in classBaseResponseWithErrors<RegisterErrorResponseType>
-
injectDataFromJson
public void injectDataFromJson()
-
valueOf
public static RegisterResponse valueOf(java.lang.String p_json)
-
injectDataFromJson
public void injectDataFromJson(java.lang.String p_json)
- Overrides:
injectDataFromJson
in classBaseResponseWithErrors<RegisterErrorResponseType>
-
getClientId
public java.lang.String getClientId()
Returns the client's identifier.- Returns:
- The client's identifier.
-
setClientId
public void setClientId(java.lang.String clientId)
Sets the client's identifier.- Parameters:
clientId
- The client's identifier.
-
getClientSecret
public java.lang.String getClientSecret()
Returns the client's password.- Returns:
- The client's password.
-
setClientSecret
public void setClientSecret(java.lang.String clientSecret)
Sets the client's password.- Parameters:
clientSecret
- The client's password.
-
getRegistrationAccessToken
public java.lang.String getRegistrationAccessToken()
-
setRegistrationAccessToken
public void setRegistrationAccessToken(java.lang.String registrationAccessToken)
-
getRegistrationClientUri
public java.lang.String getRegistrationClientUri()
-
setRegistrationClientUri
public void setRegistrationClientUri(java.lang.String registrationClientUri)
-
getClientIdIssuedAt
public java.util.Date getClientIdIssuedAt()
-
setClientIdIssuedAt
public void setClientIdIssuedAt(java.util.Date clientIdIssuedAt)
-
getClientSecretExpiresAt
public java.util.Date getClientSecretExpiresAt()
Return the expiration date after which the client's account will expire.null
if the client's account never expires.- Returns:
- The expiration date.
-
setClientSecretExpiresAt
public void setClientSecretExpiresAt(java.util.Date clientSecretExpiresAt)
Sets the expiration date after which the client's account will expire.null
if the client's account never expires.- Parameters:
clientSecretExpiresAt
- The expiration date.
-
getResponseTypes
public java.util.List<ResponseType> getResponseTypes()
-
setResponseTypes
public void setResponseTypes(java.util.List<ResponseType> responseTypes)
-
getGrantTypes
public java.util.List<GrantType> getGrantTypes()
-
setGrantTypes
public void setGrantTypes(java.util.List<GrantType> grantTypes)
-
getClaims
public java.util.Map<java.lang.String,java.lang.String> getClaims()
-
setClaims
public void setClaims(java.util.Map<java.lang.String,java.lang.String> claims)
-
-