@Entity public class OAuthClient extends AclSid implements org.springframework.security.oauth2.provider.ClientDetails, Copyable<OAuthClient>
activeCOPYABLE_FIELDS| Constructor and Description |
|---|
OAuthClient()
Instantiates a new o auth client.
|
| Modifier and Type | Method and Description |
|---|---|
OAuthClient |
apply(OAuthClient source) |
OAuthClient |
copy()
Returns null.
|
Integer |
getAccessTokenValidity()
Gets the access token validity.
|
Integer |
getAccessTokenValiditySeconds() |
Map<String,Object> |
getAdditionalInformation() |
Set<String> |
getAllowedOrigins() |
Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
Set<String> |
getAuthorizedGrantTypes() |
boolean |
getAutoApprove()
Gets the auto approve.
|
protected String |
getAutoApproveScope()
Gets the auto approve scope.
|
Set<String> |
getAutoApproveScopes()
Gets the auto approve scopes.
|
String |
getClientId() |
String |
getClientSecret() |
String |
getDescription()
Gets the description.
|
String |
getFullName()
Subclasses should override this method and return a sensible display name for
the SID.
|
String |
getGrants()
Gets the grants.
|
String |
getOrigins() |
String |
getRedirect()
Gets the redirect.
|
Integer |
getRefreshTokenValidity()
Gets the refresh token validity.
|
Integer |
getRefreshTokenValiditySeconds() |
Set<String> |
getRegisteredRedirectUri() |
String |
getResource()
Gets the resource.
|
Set<String> |
getResourceIds() |
Collection<OAuthRole> |
getRoles()
Gets the roles.
|
Set<String> |
getScope() |
String |
getTitle()
Gets the title.
|
boolean |
isAutoApprove(String scope) |
boolean |
isScoped() |
boolean |
isSecretRequired()
Client secret is required when provided.
|
void |
setAccessTokenValidity(Integer accessTokenValidity)
Sets the access token validity.
|
void |
setAdditionalInformation(Map<String,Object> additionalInformation)
Sets the additional information.
|
void |
setAllowedOrigins(Set<String> allowedOrigins) |
void |
setAutoApprove(boolean autoApprove)
Sets the auto approve.
|
protected void |
setAutoApproveScope(String autoApproveScope)
Sets the auto approve scope.
|
void |
setAutoApproveScopes(Set<String> autoApproveScopes)
Sets the auto approve scopes.
|
void |
setClientId(String clientId)
Sets the client id.
|
void |
setClientSecret(String clientSecret)
Sets the client secret.
|
void |
setDescription(String description)
Sets the description.
|
void |
setGrants(String grants)
Sets the grants.
|
void |
setGrantTypes(Set<String> grantTypes)
Sets the grant types.
|
void |
setOrigins(String origins) |
void |
setRedirect(String redirect)
Sets the redirect.
|
void |
setRedirectUris(Set<String> redirectUris)
Sets the redirect uris.
|
void |
setRefreshTokenValidity(Integer refreshTokenValidity)
Sets the refresh token validity.
|
void |
setResource(String resource)
Sets the resource.
|
void |
setResourceIds(Set<String> resourceIds)
Sets the resource ids.
|
void |
setRoles(Set<OAuthRole> roles)
Sets the roles.
|
void |
setScope(String scope)
Sets the scope.
|
void |
setScopes(Set<String> scopes)
Sets the scopes.
|
void |
setTitle(String title)
Sets the title.
|
getAclEntries, getObjectIdentities, getSid, isPrincipal, setAclEntries, setObjectIdentities, setPrincipal, setSidgetCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreatedDate, setLastModifiedBy, setLastModifiedDateequals, getVersion, hashCode, isActive, setActive, setVersion, toStringgetId, isNew, setIdpublic String getClientId()
getClientId in interface org.springframework.security.oauth2.provider.ClientDetailspublic void setClientId(String clientId)
clientId - the new client idpublic String getClientSecret()
getClientSecret in interface org.springframework.security.oauth2.provider.ClientDetailspublic void setClientSecret(String clientSecret)
clientSecret - the new client secretpublic String getResource()
public void setResource(String resource)
resource - the new resourcepublic String getGrants()
public void setGrants(String grants)
grants - the new grantspublic String getRedirect()
public void setRedirect(String redirect)
redirect - the new redirectpublic Collection<OAuthRole> getRoles()
public void setRoles(Set<OAuthRole> roles)
roles - the new rolespublic void setScope(String scope)
scope - the new scopepublic void setAutoApprove(boolean autoApprove)
autoApprove - the new auto approvepublic boolean getAutoApprove()
protected String getAutoApproveScope()
protected void setAutoApproveScope(String autoApproveScope)
autoApproveScope - the new auto approve scopepublic Set<String> getAutoApproveScopes()
public void setAutoApproveScopes(Set<String> autoApproveScopes)
autoApproveScopes - the new auto approve scopespublic Set<String> getResourceIds()
getResourceIds in interface org.springframework.security.oauth2.provider.ClientDetailspublic void setResourceIds(Set<String> resourceIds)
resourceIds - the new resource idspublic boolean isSecretRequired()
isSecretRequired in interface org.springframework.security.oauth2.provider.ClientDetailspublic boolean isScoped()
isScoped in interface org.springframework.security.oauth2.provider.ClientDetailspublic Set<String> getScope()
getScope in interface org.springframework.security.oauth2.provider.ClientDetailspublic void setScopes(Set<String> scopes)
scopes - the new scopespublic Set<String> getAuthorizedGrantTypes()
getAuthorizedGrantTypes in interface org.springframework.security.oauth2.provider.ClientDetailspublic void setGrantTypes(Set<String> grantTypes)
grantTypes - the new grant typespublic Set<String> getRegisteredRedirectUri()
getRegisteredRedirectUri in interface org.springframework.security.oauth2.provider.ClientDetailspublic void setRedirectUris(Set<String> redirectUris)
redirectUris - the new redirect urispublic Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.oauth2.provider.ClientDetailspublic Integer getAccessTokenValiditySeconds()
getAccessTokenValiditySeconds in interface org.springframework.security.oauth2.provider.ClientDetailspublic Integer getAccessTokenValidity()
public void setAccessTokenValidity(Integer accessTokenValidity)
accessTokenValidity - the new access token validitypublic Integer getRefreshTokenValiditySeconds()
getRefreshTokenValiditySeconds in interface org.springframework.security.oauth2.provider.ClientDetailspublic Integer getRefreshTokenValidity()
public void setRefreshTokenValidity(Integer refreshTokenValidity)
refreshTokenValidity - the new refresh token validitypublic boolean isAutoApprove(String scope)
isAutoApprove in interface org.springframework.security.oauth2.provider.ClientDetailspublic Map<String,Object> getAdditionalInformation()
getAdditionalInformation in interface org.springframework.security.oauth2.provider.ClientDetailspublic void setAdditionalInformation(Map<String,Object> additionalInformation)
additionalInformation - the additional informationpublic void setTitle(String title)
title - the new titlepublic String getTitle()
public void setDescription(String description)
description - the new descriptionpublic String getDescription()
public String getFullName()
AclSidgetFullName in class AclSidpublic OAuthClient copy()
copy in interface Copyable<OAuthClient>public OAuthClient apply(OAuthClient source)
apply in interface Copyable<OAuthClient>public String getOrigins()
public void setOrigins(String origins)
Copyright © 2020 Global Crop Diversity Trust. All rights reserved.