org.surfnet.oaaas.model
Class Client
java.lang.Object
org.surfnet.oaaas.model.AbstractEntity
org.surfnet.oaaas.model.Client
- All Implemented Interfaces:
- Serializable
@Entity
public class Client
- extends AbstractEntity
Represents a Client as defined by the OAuth 2 specification:
An application making protected resource requests on behalf of the resource owner and with its
authorization. The term client does not imply any particular implementation characteristics (e.g. whether
the application executes on a server, a desktop, or other devices).
- See Also:
- Serialized Form
Client
public Client()
getName
public String getName()
setName
public void setName(String name)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getContactName
public String getContactName()
setContactName
public void setContactName(String contactName)
getContactEmail
public String getContactEmail()
setContactEmail
public void setContactEmail(String contactEmail)
getScopes
public List<String> getScopes()
- Returns:
- the scopes
setScopes
public void setScopes(List<String> scopes)
- Parameters:
scopes - the scopes to set
getResourceServer
public ResourceServer getResourceServer()
- Returns:
- the resourceServer
setResourceServer
public void setResourceServer(ResourceServer resourceServer)
- Parameters:
resourceServer - the resourceServer to set
getThumbNailUrl
public String getThumbNailUrl()
- Returns:
- the thumbNailUrl
setThumbNailUrl
public void setThumbNailUrl(String thumbNailUrl)
- Parameters:
thumbNailUrl - the thumbNailUrl to set
isSkipConsent
public boolean isSkipConsent()
- Returns:
- the skipConsent
setSkipConsent
public void setSkipConsent(boolean skipConsent)
- Parameters:
skipConsent - the skipConsent to set
getClientId
public String getClientId()
- Returns:
- the clientId
setClientId
public void setClientId(String clientId)
- Parameters:
clientId - the clientId to set
getSecret
public String getSecret()
- Returns:
- the secret
setSecret
public void setSecret(String secret)
- Parameters:
secret - the secret to set
getRedirectUris
public List<String> getRedirectUris()
- Get the redirectUris
- Returns:
- List of String
setRedirectUris
public void setRedirectUris(List<String> redirectUris)
- Set the redirectUris
- Parameters:
redirectUris - the redirectUris to use.
isUseRefreshTokens
public boolean isUseRefreshTokens()
- Returns:
- the useRefreshTokens
setUseRefreshTokens
public void setUseRefreshTokens(boolean useRefreshTokens)
- Parameters:
useRefreshTokens - the useRefreshTokens to set
getExpireDuration
public long getExpireDuration()
- Returns:
- the expireDuration
setExpireDuration
public void setExpireDuration(long expireDuration)
- Parameters:
expireDuration - the expireDuration to set
isExactMatch
public boolean isExactMatch(UserPassCredentials credentials)
getAttributes
public Map<String,String> getAttributes()
- Returns:
- the attributes
setAttributes
public void setAttributes(Map<String,String> attributes)
- Parameters:
attributes - the attributes to set
isAllowedImplicitGrant
public boolean isAllowedImplicitGrant()
- Returns:
- the AllowedImplicitGrant
setAllowedImplicitGrant
public void setAllowedImplicitGrant(boolean allowedImplicitGrant)
- Parameters:
AllowedImplicitGrant - the AllowedImplicitGrant to set
isIncludePrincipal
public boolean isIncludePrincipal()
setIncludePrincipal
public void setIncludePrincipal(boolean includePrincipal)
isAllowedClientCredentials
public boolean isAllowedClientCredentials()
setAllowedClientCredentials
public void setAllowedClientCredentials(boolean allowedClientCredentials)
validate
public boolean validate(javax.validation.ConstraintValidatorContext context)
- Description copied from class:
AbstractEntity
- Template method that validates the state of an
AbstractEntity. Can
be used prior to saving/ updating the AbstractEntity
- Overrides:
validate in class AbstractEntity
- Parameters:
context - the ConstraintValidatorContext
Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.