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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
Class<?>
getId()
int
int
hashCode()
boolean
isAdmin()
boolean
boolean
boolean
boolean
void
setAdmin
(boolean isAdmin) void
setApplicationId
(String applicationId) void
setAttributes
(Map<String, Object> attributes) void
setAuthCodeTimeoutSeconds
(Integer authCodeTimeoutSeconds) void
setAuthoritativeResourceIds
(boolean authoritativeResourceIds) void
setClientAuthenticationMethods
(Set<String> clientAuthenticationMethods) void
setClientId
(String clientId) void
setClientIdIssuedAt
(Instant clientIdIssuedAt) void
setClientSecret
(String clientSecret) void
setClientSecretExpiresAt
(Instant clientSecretExpiresAt) void
setDefaultRedirectUri
(String defaultRedirectUri) void
setFriendlyName
(String friendlyName) void
setGrantTypes
(Set<String> grantTypes) void
void
setPermissions
(Set<String> permissions) void
setPostAuthenticationSuccessRedirectUris
(Set<String> postAuthenticationSuccessRedirectUris) void
setPostLogoutRedirectUris
(Set<String> postLogoutRedirectUris) void
setRedirectUris
(Set<String> redirectUris) void
setRefreshTokenTimeoutSeconds
(Integer refreshTokenTimeoutSeconds) void
setRelaxRedirectUrisValidation
(boolean relaxRedirectUrisValidation) void
setRequireAuthorizationConsent
(boolean requireAuthorizationConsent) void
setRequireProofKey
(Boolean requireProofKey) void
setResetPasswordBaseUri
(String resetPasswordBaseUri) void
setResourceIds
(Set<String> resourceIds) void
void
setServerId
(String serverId) void
setTokenTimeoutSeconds
(int tokenTimeoutSeconds) void
setUseRedirectUriToGenerateConsumeTokenUrl
(boolean useRedirectUriToGenerateConsumeTokenUrl) org.modelmapper.ModelMapper
toMe()
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, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
-
Constructor Details
-
JpaAuthorizedClient
public JpaAuthorizedClient()
-
-
Method Details
-
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
fromMe
public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in 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()
-