@Entity @Indexed(index="clients") @Analyzer(definition="entity_analyzer") public final class Client extends AbstractAuthzEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
Client.Deserializer
Deserialize a reference to an User.
|
| Constructor and Description |
|---|
Client() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getAccessTokenExpireIn()
Extract the access token expiration time (in seconds) for this client.
|
Application |
getApplication()
Get the application this client belongs to.
|
List<Authenticator> |
getAuthenticators()
The list of authenticators active in this client.
|
Integer |
getAuthorizationCodeExpiresIn()
Extract the authorization code expiration time (in seconds) for this
client.
|
String |
getClientSecret()
Retrieve the client secret.
|
Map<String,String> |
getConfiguration()
Retrieve configuration for this client.
|
String |
getName()
Get the name for this client.
|
User |
getOwner()
The owner of this entity.
|
List<ClientRedirect> |
getRedirects()
Get the valid redirect URI's.
|
List<ClientReferrer> |
getReferrers()
Get the list of valid referrers.
|
Integer |
getRefreshTokenExpireIn()
Extract the refresh token expiration time (in seconds) for this client.
|
List<OAuthToken> |
getTokens()
Get all the tokens issued under this client.
|
ClientType |
getType()
Get the client type.
|
Boolean |
isPrivate()
Whether this client is private.
|
Boolean |
isPublic()
Whether this client is public.
|
void |
setApplication(Application application)
Set the application which this client belongs to.
|
void |
setAuthenticators(List<Authenticator> authenticators)
Set the authenticators.
|
void |
setClientSecret(String clientSecret)
Set the client secret.
|
void |
setConfiguration(Map<String,String> configuration)
Set the configuration for this client.
|
void |
setName(String name)
Set the client's name.
|
void |
setRedirects(List<ClientRedirect> redirects)
Set the list of redirects.
|
void |
setReferrers(List<ClientReferrer> referrers)
Update the set of valid referrers.
|
void |
setTokens(List<OAuthToken> tokens)
Set the list of tokens for this client.
|
void |
setType(ClientType type)
Set the client type.
|
clone, equals, getCreatedDate, getId, getModifiedDate, hashCode, setCreatedDate, setId, setModifiedDate, toStringpublic Application getApplication()
public void setApplication(Application application)
application - The new application.public String getName()
public void setName(String name)
name - The name to use, should be human-readable.public String getClientSecret()
public void setClientSecret(String clientSecret)
clientSecret - A new client secret.public List<ClientReferrer> getReferrers()
public void setReferrers(List<ClientReferrer> referrers)
referrers - A new set of referrers.public List<ClientRedirect> getRedirects()
public void setRedirects(List<ClientRedirect> redirects)
redirects - The redirects.public List<Authenticator> getAuthenticators()
public void setAuthenticators(List<Authenticator> authenticators)
authenticators - New list of authenticators.public List<OAuthToken> getTokens()
public void setTokens(List<OAuthToken> tokens)
tokens - A new list of tokens.public ClientType getType()
public void setType(ClientType type)
type - The client type!public Map<String,String> getConfiguration()
public void setConfiguration(Map<String,String> configuration)
configuration - The new configuration.public Integer getAuthorizationCodeExpiresIn()
public Integer getAccessTokenExpireIn()
public Integer getRefreshTokenExpireIn()
public User getOwner()
getOwner in class AbstractAuthzEntitypublic Boolean isPrivate()
public Boolean isPublic()
Copyright © 2018 krotscheck.net. All rights reserved.