Class JpaAuthorizedClient
java.lang.Object
com.broadleafcommerce.auth.server.provider.jpa.domain.JpaAuthorizedClient
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,Serializable
@Entity
public class JpaAuthorizedClient
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.modelmapper.ModelMapperfromMe()Class<?>getId()intinthashCode()booleanisAdmin()booleanbooleanbooleanbooleanvoidsetAdmin(boolean isAdmin) voidsetApplicationId(String applicationId) voidsetAttributes(Map<String, Object> attributes) voidsetAuthCodeTimeoutSeconds(Integer authCodeTimeoutSeconds) voidsetAuthoritativeResourceIds(boolean authoritativeResourceIds) voidsetClientAuthenticationMethods(Set<String> clientAuthenticationMethods) voidsetClientId(String clientId) voidsetClientIdIssuedAt(Instant clientIdIssuedAt) voidsetClientSecret(String clientSecret) voidsetClientSecretExpiresAt(Instant clientSecretExpiresAt) voidsetDefaultRedirectUri(String defaultRedirectUri) voidsetFriendlyName(String friendlyName) voidsetGrantTypes(Set<String> grantTypes) voidvoidsetPermissions(Set<String> permissions) voidsetPostAuthenticationSuccessRedirectUris(Set<String> postAuthenticationSuccessRedirectUris) voidsetPostLogoutRedirectUris(Set<String> postLogoutRedirectUris) voidsetRedirectUris(Set<String> redirectUris) voidsetRefreshTokenTimeoutSeconds(Integer refreshTokenTimeoutSeconds) voidsetRelaxRedirectUrisValidation(boolean relaxRedirectUrisValidation) voidsetRequireAuthorizationConsent(boolean requireAuthorizationConsent) voidsetRequireProofKey(Boolean requireProofKey) voidsetResetPasswordBaseUri(String resetPasswordBaseUri) voidsetResourceIds(Set<String> resourceIds) voidvoidsetServerId(String serverId) voidsetTokenTimeoutSeconds(int tokenTimeoutSeconds) voidsetUseRedirectUriToGenerateConsumeTokenUrl(boolean useRedirectUriToGenerateConsumeTokenUrl) org.modelmapper.ModelMappertoMe()protected org.modelmapper.ExpressionMap<AuthorizedClient,JpaAuthorizedClient> By default,AuthorizedClient.getClientIdIssuedAt()will have a null value for this field when it comes from REST API calls due toJsonIgnore.protected org.modelmapper.ExpressionMap<AuthorizedClient,JpaAuthorizedClient> By default,AuthorizedClient.getClientSecretExpiresAt()will have a null value for this field when it comes from REST API calls due toJsonIgnore.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
-
Constructor Details
-
JpaAuthorizedClient
public JpaAuthorizedClient()
-
-
Method Details
-
getBusinessDomainType
- Specified by:
getBusinessDomainTypein interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
fromMe
public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
public org.modelmapper.ModelMapper toMe()- Specified by:
toMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMeClientIdIssuedAt
protected org.modelmapper.ExpressionMap<AuthorizedClient,JpaAuthorizedClient> toMeClientIdIssuedAt()By default,AuthorizedClient.getClientIdIssuedAt()will have a null value for this field when it comes from REST API calls due toJsonIgnore. Expectation is for internal system operations to be the only ones capable of managing this field. Thus, we only pass the value to the persistence domain if it's not null.- Returns:
- an expression map representing the to-me mapping for
setClientIdIssuedAt(Instant)
-
toMeClientSecretExpiresAt
protected org.modelmapper.ExpressionMap<AuthorizedClient,JpaAuthorizedClient> toMeClientSecretExpiresAt()By default,AuthorizedClient.getClientSecretExpiresAt()will have a null value for this field when it comes from REST API calls due toJsonIgnore. Expectation is for internal system operations to be the only ones capable of managing this field. Thus, we only pass the value to the persistence domain if it's not null.- Returns:
- an expression map representing the to-me mapping for
setClientSecretExpiresAt(Instant)
-
getId
-
getServerId
-
getFriendlyName
-
getClientId
-
getClientIdIssuedAt
- See Also:
-
getClientSecret
-
getClientSecretExpiresAt
-
getTokenTimeoutSeconds
public int getTokenTimeoutSeconds() -
getRefreshTokenTimeoutSeconds
-
getAuthCodeTimeoutSeconds
-
getResourceIds
-
isAuthoritativeResourceIds
public boolean isAuthoritativeResourceIds() -
getClientAuthenticationMethods
-
isRequireAuthorizationConsent
public boolean isRequireAuthorizationConsent() -
getGrantTypes
-
getRedirectUris
-
isRelaxRedirectUrisValidation
public boolean isRelaxRedirectUrisValidation() -
getPostAuthenticationSuccessRedirectUris
-
getPostLogoutRedirectUris
-
getScopes
-
getPermissions
-
isAdmin
public boolean isAdmin() -
getApplicationId
-
getAttributes
-
getDefaultRedirectUri
-
getResetPasswordBaseUri
-
isUseRedirectUriToGenerateConsumeTokenUrl
public boolean isUseRedirectUriToGenerateConsumeTokenUrl() -
getRequireProofKey
-
setId
-
setServerId
-
setFriendlyName
-
setClientId
-
setClientIdIssuedAt
- See Also:
-
setClientSecret
-
setClientSecretExpiresAt
-
setTokenTimeoutSeconds
public void setTokenTimeoutSeconds(int tokenTimeoutSeconds) -
setRefreshTokenTimeoutSeconds
-
setAuthCodeTimeoutSeconds
-
setResourceIds
-
setAuthoritativeResourceIds
public void setAuthoritativeResourceIds(boolean authoritativeResourceIds) -
setClientAuthenticationMethods
-
setRequireAuthorizationConsent
public void setRequireAuthorizationConsent(boolean requireAuthorizationConsent) -
setGrantTypes
-
setRedirectUris
-
setRelaxRedirectUrisValidation
public void setRelaxRedirectUrisValidation(boolean relaxRedirectUrisValidation) -
setPostAuthenticationSuccessRedirectUris
-
setPostLogoutRedirectUris
-
setScopes
-
setPermissions
-
setAdmin
public void setAdmin(boolean isAdmin) -
setApplicationId
-
setAttributes
-
setDefaultRedirectUri
-
setResetPasswordBaseUri
-
setUseRedirectUriToGenerateConsumeTokenUrl
public void setUseRedirectUriToGenerateConsumeTokenUrl(boolean useRedirectUriToGenerateConsumeTokenUrl) -
setRequireProofKey
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-