Package org.genesys.blocks.oauth.model
Class OAuthClient
java.lang.Object
org.genesys.blocks.model.EmptyModel
org.genesys.blocks.model.BasicModel
org.genesys.blocks.model.VersionedModel
org.genesys.blocks.model.AuditedVersionedModel
org.genesys.blocks.security.model.AclSid
org.genesys.blocks.oauth.model.OAuthClient
- 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:
-
Field Summary
Fields inherited from class org.genesys.blocks.security.model.AclSid
OIDC_SID_IDFields inherited from class org.genesys.blocks.model.VersionedModel
activeFields inherited from interface org.genesys.blocks.model.Copyable
COPYABLE_FIELDS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(OAuthClient source) copy()Returns null.Collection<? extends org.springframework.security.core.GrantedAuthority>Subclasses should override this method and return a sensible display name for the SID.getScope()booleanisAutoApprove(String scope) booleanisScoped()booleanClient secret is required when provided.voidsetRuntimeAuthorities(List<org.springframework.security.core.GrantedAuthority> authorities) Set the actual authorities to use at runtime.voidSets the scopes.toString()Methods inherited from class org.genesys.blocks.model.VersionedModel
getVersion, isActive, setActive, setVersionMethods inherited from class org.genesys.blocks.model.BasicModel
getId, setIdMethods inherited from class org.genesys.blocks.model.EmptyModel
equals, hashCode, isNewMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.genesys.blocks.model.Copyable
copyList
-
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() -
getScope
-
setScopes
Sets the scopes.- Parameters:
scopes- the new scopes
-
getAuthorizedGrantTypes
-
getRegisteredRedirectUri
-
getAuthorities
-
getAccessTokenValiditySeconds
-
getRefreshTokenValiditySeconds
-
isAutoApprove
-
getFullName
Description copied from class:AclSidSubclasses should override this method and return a sensible display name for the SID.- Overrides:
getFullNamein classAclSid- Returns:
- SID full name
-
copy
Returns null.- Specified by:
copyin interfaceorg.genesys.blocks.model.Copyable<OAuthClient>- Returns:
- the o auth client
-
apply
- Specified by:
applyin interfaceorg.genesys.blocks.model.Copyable<OAuthClient>
-
setRuntimeAuthorities
public void setRuntimeAuthorities(List<org.springframework.security.core.GrantedAuthority> authorities) Set the actual authorities to use at runtime. SeeruntimeAuthorities.- Parameters:
authorities- the new runtime authorities
-
toString
-