@Entity public class ClientDetailsEntity extends Object implements org.springframework.security.oauth2.provider.ClientDetails
Modifier and Type | Class and Description |
---|---|
static class |
ClientDetailsEntity.AppType |
static class |
ClientDetailsEntity.AuthMethod |
static class |
ClientDetailsEntity.SubjectType |
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_CLIENT_ID |
static String |
QUERY_ALL |
static String |
QUERY_BY_CLIENT_ID |
Constructor and Description |
---|
ClientDetailsEntity()
Create a blank ClientDetailsEntity
|
Modifier and Type | Method and Description |
---|---|
Integer |
getAccessTokenValiditySeconds() |
Map<String,Object> |
getAdditionalInformation()
This library does not make use of this field, so it is not
stored using our persistence layer.
|
ClientDetailsEntity.AppType |
getApplicationType() |
Set<org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
Set<String> |
getAuthorizedGrantTypes()
passthrough for SECOAUTH api
|
Set<String> |
getClaimsRedirectUris() |
String |
getClientDescription() |
String |
getClientId() |
String |
getClientName() |
String |
getClientSecret() |
String |
getClientUri() |
PKCEAlgorithm |
getCodeChallengeMethod() |
Set<String> |
getContacts() |
Date |
getCreatedAt() |
Set<String> |
getDefaultACRvalues() |
Integer |
getDefaultMaxAge() |
Integer |
getDeviceCodeValiditySeconds() |
Set<String> |
getGrantTypes() |
Long |
getId() |
com.nimbusds.jose.JWEAlgorithm |
getIdTokenEncryptedResponseAlg() |
com.nimbusds.jose.EncryptionMethod |
getIdTokenEncryptedResponseEnc() |
com.nimbusds.jose.JWSAlgorithm |
getIdTokenSignedResponseAlg() |
Integer |
getIdTokenValiditySeconds()
Number of seconds ID token is valid for.
|
String |
getInitiateLoginUri() |
com.nimbusds.jose.jwk.JWKSet |
getJwks() |
String |
getJwksUri() |
String |
getLogoUri() |
String |
getPolicyUri() |
Set<String> |
getPostLogoutRedirectUris() |
Set<String> |
getRedirectUris() |
Integer |
getRefreshTokenValiditySeconds() |
Set<String> |
getRegisteredRedirectUri()
Pass-through method to fulfill the ClientDetails interface with a bad name
|
com.nimbusds.jose.JWSAlgorithm |
getRequestObjectSigningAlg() |
Set<String> |
getRequestUris() |
Boolean |
getRequireAuthTime() |
Set<String> |
getResourceIds() |
Set<String> |
getResponseTypes() |
Set<String> |
getScope() |
String |
getSectorIdentifierUri() |
String |
getSoftwareId() |
com.nimbusds.jwt.JWT |
getSoftwareStatement() |
String |
getSoftwareVersion() |
ClientDetailsEntity.SubjectType |
getSubjectType() |
ClientDetailsEntity.AuthMethod |
getTokenEndpointAuthMethod() |
com.nimbusds.jose.JWSAlgorithm |
getTokenEndpointAuthSigningAlg() |
String |
getTosUri() |
com.nimbusds.jose.JWEAlgorithm |
getUserInfoEncryptedResponseAlg() |
com.nimbusds.jose.EncryptionMethod |
getUserInfoEncryptedResponseEnc() |
com.nimbusds.jose.JWSAlgorithm |
getUserInfoSignedResponseAlg() |
boolean |
isAllowIntrospection() |
boolean |
isAllowRefresh() |
boolean |
isAutoApprove(String scope)
Our framework doesn't use this construct, we use WhitelistedSites and ApprovedSites instead.
|
boolean |
isClearAccessTokensOnRefresh() |
boolean |
isDynamicallyRegistered() |
boolean |
isReuseRefreshToken() |
boolean |
isScoped()
If the scope list is not null or empty, then this client has been scoped.
|
boolean |
isSecretRequired() |
void |
setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds) |
void |
setAllowIntrospection(boolean allowIntrospection) |
void |
setApplicationType(ClientDetailsEntity.AppType applicationType) |
void |
setAuthorities(Set<org.springframework.security.core.GrantedAuthority> authorities) |
void |
setClaimsRedirectUris(Set<String> claimsRedirectUris) |
void |
setClearAccessTokensOnRefresh(boolean clearAccessTokensOnRefresh) |
void |
setClientDescription(String clientDescription) |
void |
setClientId(String clientId) |
void |
setClientName(String clientName) |
void |
setClientSecret(String clientSecret) |
void |
setClientUri(String clientUri) |
void |
setCodeChallengeMethod(PKCEAlgorithm codeChallengeMethod) |
void |
setContacts(Set<String> contacts) |
void |
setCreatedAt(Date createdAt) |
void |
setDefaultACRvalues(Set<String> defaultACRvalues) |
void |
setDefaultMaxAge(Integer defaultMaxAge) |
void |
setDeviceCodeValiditySeconds(Integer deviceCodeValiditySeconds) |
void |
setDynamicallyRegistered(boolean dynamicallyRegistered) |
void |
setGrantTypes(Set<String> grantTypes) |
void |
setId(Long id) |
void |
setIdTokenEncryptedResponseAlg(com.nimbusds.jose.JWEAlgorithm idTokenEncryptedResponseAlg) |
void |
setIdTokenEncryptedResponseEnc(com.nimbusds.jose.EncryptionMethod idTokenEncryptedResponseEnc) |
void |
setIdTokenSignedResponseAlg(com.nimbusds.jose.JWSAlgorithm idTokenSignedResponseAlg) |
void |
setIdTokenValiditySeconds(Integer idTokenValiditySeconds) |
void |
setInitiateLoginUri(String initiateLoginUri) |
void |
setJwks(com.nimbusds.jose.jwk.JWKSet jwks) |
void |
setJwksUri(String jwksUri) |
void |
setLogoUri(String logoUri) |
void |
setPolicyUri(String policyUri) |
void |
setPostLogoutRedirectUris(Set<String> postLogoutRedirectUri) |
void |
setRedirectUris(Set<String> redirectUris) |
void |
setRefreshTokenValiditySeconds(Integer refreshTokenValiditySeconds) |
void |
setRequestObjectSigningAlg(com.nimbusds.jose.JWSAlgorithm requestObjectSigningAlg) |
void |
setRequestUris(Set<String> requestUris) |
void |
setRequireAuthTime(Boolean requireAuthTime) |
void |
setResourceIds(Set<String> resourceIds) |
void |
setResponseTypes(Set<String> responseTypes) |
void |
setReuseRefreshToken(boolean reuseRefreshToken) |
void |
setScope(Set<String> scope) |
void |
setSectorIdentifierUri(String sectorIdentifierUri) |
void |
setSoftwareId(String softwareId) |
void |
setSoftwareStatement(com.nimbusds.jwt.JWT softwareStatement) |
void |
setSoftwareVersion(String softwareVersion) |
void |
setSubjectType(ClientDetailsEntity.SubjectType subjectType) |
void |
setTokenEndpointAuthMethod(ClientDetailsEntity.AuthMethod tokenEndpointAuthMethod) |
void |
setTokenEndpointAuthSigningAlg(com.nimbusds.jose.JWSAlgorithm tokenEndpointAuthSigningAlg) |
void |
setTosUri(String tosUri) |
void |
setUserInfoEncryptedResponseAlg(com.nimbusds.jose.JWEAlgorithm userInfoEncryptedResponseAlg) |
void |
setUserInfoEncryptedResponseEnc(com.nimbusds.jose.EncryptionMethod userInfoEncryptedResponseEnc) |
void |
setUserInfoSignedResponseAlg(com.nimbusds.jose.JWSAlgorithm userInfoSignedResponseAlg) |
public static final String QUERY_BY_CLIENT_ID
public static final String QUERY_ALL
public static final String PARAM_CLIENT_ID
public ClientDetailsEntity()
public String getClientDescription()
public void setClientDescription(String clientDescription)
clientDescription
- Human-readable long description of the client (optional)public boolean isAllowRefresh()
public boolean isReuseRefreshToken()
public void setReuseRefreshToken(boolean reuseRefreshToken)
public Integer getIdTokenValiditySeconds()
public void setIdTokenValiditySeconds(Integer idTokenValiditySeconds)
idTokenValiditySeconds
- the idTokenValiditySeconds to setpublic boolean isDynamicallyRegistered()
public void setDynamicallyRegistered(boolean dynamicallyRegistered)
dynamicallyRegistered
- the dynamicallyRegistered to setpublic boolean isAllowIntrospection()
public void setAllowIntrospection(boolean allowIntrospection)
allowIntrospection
- the allowIntrospection to setpublic boolean isSecretRequired()
isSecretRequired
in interface org.springframework.security.oauth2.provider.ClientDetails
public boolean isScoped()
isScoped
in interface org.springframework.security.oauth2.provider.ClientDetails
public String getClientId()
getClientId
in interface org.springframework.security.oauth2.provider.ClientDetails
public void setClientId(String clientId)
clientId
- The OAuth2 client_id, must be unique to this clientpublic String getClientSecret()
getClientSecret
in interface org.springframework.security.oauth2.provider.ClientDetails
public void setClientSecret(String clientSecret)
clientSecret
- the OAuth2 client_secret (optional)public Set<String> getScope()
getScope
in interface org.springframework.security.oauth2.provider.ClientDetails
public void setScope(Set<String> scope)
scope
- the set of scopes allowed to be issued to this clientpublic Set<String> getGrantTypes()
public void setGrantTypes(Set<String> grantTypes)
authorizedGrantTypes
- the OAuth2 grant types that this client is allowed to usepublic Set<String> getAuthorizedGrantTypes()
getAuthorizedGrantTypes
in interface org.springframework.security.oauth2.provider.ClientDetails
public Set<org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface org.springframework.security.oauth2.provider.ClientDetails
public void setAuthorities(Set<org.springframework.security.core.GrantedAuthority> authorities)
authorities
- the Spring Security authorities this client is givenpublic Integer getAccessTokenValiditySeconds()
getAccessTokenValiditySeconds
in interface org.springframework.security.oauth2.provider.ClientDetails
public void setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds)
accessTokenTimeout
- the accessTokenTimeout to setpublic Integer getRefreshTokenValiditySeconds()
getRefreshTokenValiditySeconds
in interface org.springframework.security.oauth2.provider.ClientDetails
public void setRefreshTokenValiditySeconds(Integer refreshTokenValiditySeconds)
refreshTokenTimeout
- Lifetime of refresh tokens, in seconds (optional - leave null for no timeout)public Set<String> getRedirectUris()
public void setRedirectUris(Set<String> redirectUris)
registeredRedirectUri
- the registeredRedirectUri to setpublic Set<String> getRegisteredRedirectUri()
getRegisteredRedirectUri
in interface org.springframework.security.oauth2.provider.ClientDetails
public Set<String> getResourceIds()
getResourceIds
in interface org.springframework.security.oauth2.provider.ClientDetails
public void setResourceIds(Set<String> resourceIds)
resourceIds
- the resourceIds to setpublic Map<String,Object> getAdditionalInformation()
getAdditionalInformation
in interface org.springframework.security.oauth2.provider.ClientDetails
public ClientDetailsEntity.AppType getApplicationType()
public void setApplicationType(ClientDetailsEntity.AppType applicationType)
public String getClientName()
public void setClientName(String clientName)
public ClientDetailsEntity.AuthMethod getTokenEndpointAuthMethod()
public void setTokenEndpointAuthMethod(ClientDetailsEntity.AuthMethod tokenEndpointAuthMethod)
public ClientDetailsEntity.SubjectType getSubjectType()
public void setSubjectType(ClientDetailsEntity.SubjectType subjectType)
public Set<String> getContacts()
public void setContacts(Set<String> contacts)
public String getLogoUri()
public void setLogoUri(String logoUri)
public String getPolicyUri()
public void setPolicyUri(String policyUri)
public String getClientUri()
public void setClientUri(String clientUri)
clientUrl
- the clientUrl to setpublic String getJwksUri()
public void setJwksUri(String jwksUri)
public com.nimbusds.jose.jwk.JWKSet getJwks()
public void setJwks(com.nimbusds.jose.jwk.JWKSet jwks)
jwks
- the jwks to setpublic String getSectorIdentifierUri()
public void setSectorIdentifierUri(String sectorIdentifierUri)
public com.nimbusds.jose.JWSAlgorithm getRequestObjectSigningAlg()
public void setRequestObjectSigningAlg(com.nimbusds.jose.JWSAlgorithm requestObjectSigningAlg)
public com.nimbusds.jose.JWSAlgorithm getUserInfoSignedResponseAlg()
public void setUserInfoSignedResponseAlg(com.nimbusds.jose.JWSAlgorithm userInfoSignedResponseAlg)
public com.nimbusds.jose.JWEAlgorithm getUserInfoEncryptedResponseAlg()
public void setUserInfoEncryptedResponseAlg(com.nimbusds.jose.JWEAlgorithm userInfoEncryptedResponseAlg)
public com.nimbusds.jose.EncryptionMethod getUserInfoEncryptedResponseEnc()
public void setUserInfoEncryptedResponseEnc(com.nimbusds.jose.EncryptionMethod userInfoEncryptedResponseEnc)
public com.nimbusds.jose.JWSAlgorithm getIdTokenSignedResponseAlg()
public void setIdTokenSignedResponseAlg(com.nimbusds.jose.JWSAlgorithm idTokenSignedResponseAlg)
public com.nimbusds.jose.JWEAlgorithm getIdTokenEncryptedResponseAlg()
public void setIdTokenEncryptedResponseAlg(com.nimbusds.jose.JWEAlgorithm idTokenEncryptedResponseAlg)
public com.nimbusds.jose.EncryptionMethod getIdTokenEncryptedResponseEnc()
public void setIdTokenEncryptedResponseEnc(com.nimbusds.jose.EncryptionMethod idTokenEncryptedResponseEnc)
public com.nimbusds.jose.JWSAlgorithm getTokenEndpointAuthSigningAlg()
public void setTokenEndpointAuthSigningAlg(com.nimbusds.jose.JWSAlgorithm tokenEndpointAuthSigningAlg)
public Integer getDefaultMaxAge()
public void setDefaultMaxAge(Integer defaultMaxAge)
public Boolean getRequireAuthTime()
public void setRequireAuthTime(Boolean requireAuthTime)
public Set<String> getResponseTypes()
public void setResponseTypes(Set<String> responseTypes)
responseTypes
- the responseTypes to setpublic Set<String> getDefaultACRvalues()
public void setDefaultACRvalues(Set<String> defaultACRvalues)
defaultACRvalues
- the defaultACRvalues to setpublic String getInitiateLoginUri()
public void setInitiateLoginUri(String initiateLoginUri)
initiateLoginUri
- the initiateLoginUri to setpublic Set<String> getPostLogoutRedirectUris()
public void setPostLogoutRedirectUris(Set<String> postLogoutRedirectUri)
postLogoutRedirectUri
- the postLogoutRedirectUri to setpublic Set<String> getRequestUris()
public void setRequestUris(Set<String> requestUris)
requestUris
- the requestUris to setpublic Date getCreatedAt()
public void setCreatedAt(Date createdAt)
createdAt
- the createdAt to setpublic boolean isAutoApprove(String scope)
isAutoApprove
in interface org.springframework.security.oauth2.provider.ClientDetails
public boolean isClearAccessTokensOnRefresh()
public void setClearAccessTokensOnRefresh(boolean clearAccessTokensOnRefresh)
clearAccessTokensOnRefresh
- the clearAccessTokensOnRefresh to setpublic Set<String> getClaimsRedirectUris()
public void setClaimsRedirectUris(Set<String> claimsRedirectUris)
claimsRedirectUris
- the claimsRedirectUris to setpublic com.nimbusds.jwt.JWT getSoftwareStatement()
public void setSoftwareStatement(com.nimbusds.jwt.JWT softwareStatement)
softwareStatement
- the softwareStatement to setpublic PKCEAlgorithm getCodeChallengeMethod()
public void setCodeChallengeMethod(PKCEAlgorithm codeChallengeMethod)
codeChallengeMethod
- the codeChallengeMethod to setpublic Integer getDeviceCodeValiditySeconds()
public void setDeviceCodeValiditySeconds(Integer deviceCodeValiditySeconds)
deviceCodeValiditySeconds
- the deviceCodeValiditySeconds to setpublic String getSoftwareId()
public void setSoftwareId(String softwareId)
softwareId
- the softwareId to setpublic String getSoftwareVersion()
public void setSoftwareVersion(String softwareVersion)
softwareVersion
- the softwareVersion to setCopyright © 2018. All rights reserved.