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 Details

    • JpaAuthorizedClient

      public JpaAuthorizedClient()
  • Method Details

    • getBusinessDomainType

      public Class<?> getBusinessDomainType()
      Specified by:
      getBusinessDomainType in interface com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
    • fromMe

      public org.modelmapper.ModelMapper fromMe()
      Specified by:
      fromMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • toMe

      public org.modelmapper.ModelMapper toMe()
      Specified by:
      toMe in interface com.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 to JsonIgnore. 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 to JsonIgnore. 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

      public String getId()
    • getServerId

      public String getServerId()
    • getFriendlyName

      public String getFriendlyName()
    • getClientId

      public String getClientId()
    • getClientIdIssuedAt

      @Nullable public Instant getClientIdIssuedAt()
      See Also:
    • getClientSecret

      public String getClientSecret()
    • getClientSecretExpiresAt

      @Nullable public Instant getClientSecretExpiresAt()
      See Also:
    • getTokenTimeoutSeconds

      public int getTokenTimeoutSeconds()
    • getRefreshTokenTimeoutSeconds

      public Integer getRefreshTokenTimeoutSeconds()
    • getAuthCodeTimeoutSeconds

      public Integer getAuthCodeTimeoutSeconds()
    • getResourceIds

      public Set<String> getResourceIds()
    • isAuthoritativeResourceIds

      public boolean isAuthoritativeResourceIds()
      See Also:
    • getClientAuthenticationMethods

      public Set<String> getClientAuthenticationMethods()
      See Also:
    • isRequireAuthorizationConsent

      public boolean isRequireAuthorizationConsent()
      See Also:
    • getGrantTypes

      public Set<String> getGrantTypes()
    • getRedirectUris

      public Set<String> getRedirectUris()
    • isRelaxRedirectUrisValidation

      public boolean isRelaxRedirectUrisValidation()
      See Also:
    • getPostAuthenticationSuccessRedirectUris

      public Set<String> getPostAuthenticationSuccessRedirectUris()
      See Also:
    • getPostLogoutRedirectUris

      public Set<String> getPostLogoutRedirectUris()
      See Also:
    • getScopes

      public Set<String> getScopes()
    • getPermissions

      public Set<String> getPermissions()
    • isAdmin

      public boolean isAdmin()
    • getApplicationId

      public String getApplicationId()
    • getAttributes

      public Map<String,Object> getAttributes()
    • getDefaultRedirectUri

      public String getDefaultRedirectUri()
    • getResetPasswordBaseUri

      public String getResetPasswordBaseUri()
    • isUseRedirectUriToGenerateConsumeTokenUrl

      public boolean isUseRedirectUriToGenerateConsumeTokenUrl()
    • getRequireProofKey

      public Boolean getRequireProofKey()
    • setId

      public void setId(String id)
    • setServerId

      public void setServerId(String serverId)
    • setFriendlyName

      public void setFriendlyName(String friendlyName)
    • setClientId

      public void setClientId(String clientId)
    • setClientIdIssuedAt

      public void setClientIdIssuedAt(@Nullable Instant clientIdIssuedAt)
      See Also:
    • setClientSecret

      public void setClientSecret(String clientSecret)
    • setClientSecretExpiresAt

      public void setClientSecretExpiresAt(@Nullable Instant clientSecretExpiresAt)
      See Also:
    • setTokenTimeoutSeconds

      public void setTokenTimeoutSeconds(int tokenTimeoutSeconds)
    • setRefreshTokenTimeoutSeconds

      public void setRefreshTokenTimeoutSeconds(Integer refreshTokenTimeoutSeconds)
    • setAuthCodeTimeoutSeconds

      public void setAuthCodeTimeoutSeconds(Integer authCodeTimeoutSeconds)
    • setResourceIds

      public void setResourceIds(Set<String> resourceIds)
    • setAuthoritativeResourceIds

      public void setAuthoritativeResourceIds(boolean authoritativeResourceIds)
      See Also:
    • setClientAuthenticationMethods

      public void setClientAuthenticationMethods(Set<String> clientAuthenticationMethods)
      See Also:
    • setRequireAuthorizationConsent

      public void setRequireAuthorizationConsent(boolean requireAuthorizationConsent)
      See Also:
    • setGrantTypes

      public void setGrantTypes(Set<String> grantTypes)
    • setRedirectUris

      public void setRedirectUris(Set<String> redirectUris)
    • setRelaxRedirectUrisValidation

      public void setRelaxRedirectUrisValidation(boolean relaxRedirectUrisValidation)
      See Also:
    • setPostAuthenticationSuccessRedirectUris

      public void setPostAuthenticationSuccessRedirectUris(Set<String> postAuthenticationSuccessRedirectUris)
      See Also:
    • setPostLogoutRedirectUris

      public void setPostLogoutRedirectUris(Set<String> postLogoutRedirectUris)
      See Also:
    • setScopes

      public void setScopes(Set<String> scopes)
    • setPermissions

      public void setPermissions(Set<String> permissions)
    • setAdmin

      public void setAdmin(boolean isAdmin)
    • setApplicationId

      public void setApplicationId(String applicationId)
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
    • setDefaultRedirectUri

      public void setDefaultRedirectUri(String defaultRedirectUri)
    • setResetPasswordBaseUri

      public void setResetPasswordBaseUri(String resetPasswordBaseUri)
    • setUseRedirectUriToGenerateConsumeTokenUrl

      public void setUseRedirectUriToGenerateConsumeTokenUrl(boolean useRedirectUriToGenerateConsumeTokenUrl)
    • setRequireProofKey

      public void setRequireProofKey(Boolean requireProofKey)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object