Class OAuthClient

java.lang.Object
org.genesys.blocks.model.EmptyModel
org.genesys.blocks.model.BasicModel
org.genesys.blocks.model.VersionedModel
All Implemented Interfaces:
Serializable, org.genesys.blocks.model.Activatable, org.genesys.blocks.model.Copyable<OAuthClient>, org.genesys.blocks.model.EntityId, org.springframework.data.domain.Persistable<Long>

@Entity public class OAuthClient extends AclSid implements org.genesys.blocks.model.Copyable<OAuthClient>
OAuth Client information.
See Also:
  • Constructor Details

    • OAuthClient

      public OAuthClient()
      Instantiates a new o auth client.
  • Method Details

    • isSecretRequired

      public boolean isSecretRequired()
      Client secret is required when provided.
      Returns:
      true, if is secret required
    • isScoped

      public boolean isScoped()
      Does the client have any scopes defined?
      Returns:
      true if client has defined scopes, false otherwise
    • getScope

      public Set<String> getScope()
    • setScopes

      public void setScopes(Set<String> scopes)
      Sets the scopes.
      Parameters:
      scopes - the new scopes
    • getAuthorizedGrantTypes

      public Set<String> getAuthorizedGrantTypes()
    • getRegisteredRedirectUri

      public Set<String> getRegisteredRedirectUri()
    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
    • getAccessTokenValiditySeconds

      public Integer getAccessTokenValiditySeconds()
    • getRefreshTokenValiditySeconds

      public Integer getRefreshTokenValiditySeconds()
    • isAutoApprove

      public boolean isAutoApprove(String scope)
    • getFullName

      public String getFullName()
      Description copied from class: AclSid
      Subclasses should override this method and return a sensible display name for the SID.
      Overrides:
      getFullName in class AclSid
      Returns:
      SID full name
    • copy

      public OAuthClient copy()
      Returns null.
      Specified by:
      copy in interface org.genesys.blocks.model.Copyable<OAuthClient>
      Returns:
      the o auth client
    • apply

      public OAuthClient apply(OAuthClient source)
      Specified by:
      apply in interface org.genesys.blocks.model.Copyable<OAuthClient>
    • setRuntimeAuthorities

      public void setRuntimeAuthorities(List<org.springframework.security.core.GrantedAuthority> authorities)
      Set the actual authorities to use at runtime. See runtimeAuthorities.
      Parameters:
      authorities - the new runtime authorities
    • toString

      public String toString()
      Overrides:
      toString in class AclSid