org.surfnet.oaaas.model
Class Client

java.lang.Object
  extended by org.surfnet.oaaas.model.AbstractEntity
      extended by 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

Constructor Summary
Client()
           
 
Method Summary
 Map<String,String> getAttributes()
           
 String getClientId()
           
 String getContactEmail()
           
 String getContactName()
           
 String getDescription()
           
 long getExpireDuration()
           
 String getName()
           
 List<String> getRedirectUris()
          Get the redirectUris
 ResourceServer getResourceServer()
           
 List<String> getScopes()
           
 String getSecret()
           
 String getThumbNailUrl()
           
 boolean isAllowedClientCredentials()
           
 boolean isAllowedImplicitGrant()
           
 boolean isExactMatch(UserPassCredentials credentials)
           
 boolean isIncludePrincipal()
           
 boolean isSkipConsent()
           
 boolean isUseRefreshTokens()
           
 void setAllowedClientCredentials(boolean allowedClientCredentials)
           
 void setAllowedImplicitGrant(boolean allowedImplicitGrant)
           
 void setAttributes(Map<String,String> attributes)
           
 void setClientId(String clientId)
           
 void setContactEmail(String contactEmail)
           
 void setContactName(String contactName)
           
 void setDescription(String description)
           
 void setExpireDuration(long expireDuration)
           
 void setIncludePrincipal(boolean includePrincipal)
           
 void setName(String name)
           
 void setRedirectUris(List<String> redirectUris)
          Set the redirectUris
 void setResourceServer(ResourceServer resourceServer)
           
 void setScopes(List<String> scopes)
           
 void setSecret(String secret)
           
 void setSkipConsent(boolean skipConsent)
           
 void setThumbNailUrl(String thumbNailUrl)
           
 void setUseRefreshTokens(boolean useRefreshTokens)
           
 boolean validate(javax.validation.ConstraintValidatorContext context)
          Template method that validates the state of an AbstractEntity.
 
Methods inherited from class org.surfnet.oaaas.model.AbstractEntity
equals, getCreationDate, getId, getModificationDate, hashCode, setId, toString, updateTimeStamps, violation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Client

public Client()
Method Detail

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.