Package io.jans.as.client
Class RegisterResponse
- java.lang.Object
-
- io.jans.as.client.BaseResponse
-
- io.jans.as.client.BaseResponseWithErrors<io.jans.as.model.register.RegisterErrorResponseType>
-
- io.jans.as.client.RegisterResponse
-
public class RegisterResponse extends BaseResponseWithErrors<io.jans.as.model.register.RegisterErrorResponseType>
Represents a register response received from the authorization server.- Version:
- July 18, 2017
- Author:
- Javier Rojas Blum
-
-
Field Summary
-
Fields inherited from class io.jans.as.client.BaseResponse
entity, headers, location, status
-
-
Constructor Summary
Constructors Constructor Description RegisterResponse()RegisterResponse(jakarta.ws.rs.core.Response clientResponse)Constructs a register response.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.jans.as.model.register.RegisterErrorResponseTypefromString(String string)StringgetClientId()Returns the client's identifier.DategetClientIdIssuedAt()StringgetClientSecret()Returns the client's password.DategetClientSecretExpiresAt()Return the expiration date after which the client's account will expire.List<io.jans.as.model.common.GrantType>getGrantTypes()StringgetRegistrationAccessToken()StringgetRegistrationClientUri()List<io.jans.as.model.common.ResponseType>getResponseTypes()voidinjectDataFromJson()voidinjectDataFromJson(String json)voidsetClientId(String clientId)Sets the client's identifier.voidsetClientIdIssuedAt(Date clientIdIssuedAt)voidsetClientSecret(String clientSecret)Sets the client's password.voidsetClientSecretExpiresAt(Date clientSecretExpiresAt)Sets the expiration date after which the client's account will expire.voidsetGrantTypes(List<io.jans.as.model.common.GrantType> grantTypes)voidsetRegistrationAccessToken(String registrationAccessToken)voidsetRegistrationClientUri(String registrationClientUri)voidsetResponseTypes(List<io.jans.as.model.common.ResponseType> responseTypes)static RegisterResponsevalueOf(String json)-
Methods inherited from class io.jans.as.client.BaseResponseWithErrors
getClaim, getClaimMap, getClaims, getErrorDescription, getErrorType, getErrorUri, getFirstClaim, injectErrorIfExistSilently, injectErrorIfExistSilently, setClaimMap, setErrorDescription, setErrorType, setErrorUri, toString
-
Methods inherited from class io.jans.as.client.BaseResponse
getEntity, getHeaders, getLocation, getStatus, setEntity, setHeaders, setLocation, setStatus
-
-
-
-
Method Detail
-
fromString
public io.jans.as.model.register.RegisterErrorResponseType fromString(String string)
- Specified by:
fromStringin classBaseResponseWithErrors<io.jans.as.model.register.RegisterErrorResponseType>
-
injectDataFromJson
public void injectDataFromJson()
-
valueOf
public static RegisterResponse valueOf(String json)
-
injectDataFromJson
public void injectDataFromJson(String json)
- Overrides:
injectDataFromJsonin classBaseResponseWithErrors<io.jans.as.model.register.RegisterErrorResponseType>
-
getClientId
public String getClientId()
Returns the client's identifier.- Returns:
- The client's identifier.
-
setClientId
public void setClientId(String clientId)
Sets the client's identifier.- Parameters:
clientId- The client's identifier.
-
getClientSecret
public String getClientSecret()
Returns the client's password.- Returns:
- The client's password.
-
setClientSecret
public void setClientSecret(String clientSecret)
Sets the client's password.- Parameters:
clientSecret- The client's password.
-
getRegistrationAccessToken
public String getRegistrationAccessToken()
-
setRegistrationAccessToken
public void setRegistrationAccessToken(String registrationAccessToken)
-
getRegistrationClientUri
public String getRegistrationClientUri()
-
setRegistrationClientUri
public void setRegistrationClientUri(String registrationClientUri)
-
getClientIdIssuedAt
public Date getClientIdIssuedAt()
-
setClientIdIssuedAt
public void setClientIdIssuedAt(Date clientIdIssuedAt)
-
getClientSecretExpiresAt
public Date getClientSecretExpiresAt()
Return the expiration date after which the client's account will expire.nullif the client's account never expires.- Returns:
- The expiration date.
-
setClientSecretExpiresAt
public void setClientSecretExpiresAt(Date clientSecretExpiresAt)
Sets the expiration date after which the client's account will expire.nullif the client's account never expires.- Parameters:
clientSecretExpiresAt- The expiration date.
-
getResponseTypes
public List<io.jans.as.model.common.ResponseType> getResponseTypes()
-
setResponseTypes
public void setResponseTypes(List<io.jans.as.model.common.ResponseType> responseTypes)
-
getGrantTypes
public List<io.jans.as.model.common.GrantType> getGrantTypes()
-
setGrantTypes
public void setGrantTypes(List<io.jans.as.model.common.GrantType> grantTypes)
-
-