@Entity public class Client extends Object implements Serializable
Constructor and Description |
---|
Client() |
Client(String clientId,
String clientSecret,
boolean isConfidential) |
Client(String clientId,
String clientSecret,
boolean isConfidential,
String applicationName) |
Client(String clientId,
String clientSecret,
boolean isConfidential,
String applicationName,
String applicationWebUri) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllowedGrantTypes()
Get the list of access token grant types this client
can use to obtain the access tokens.
|
List<String> |
getApplicationCertificates() |
String |
getApplicationDescription()
Get the description of the third-party application.
|
String |
getApplicationLogoUri()
Get the URI pointing to a logo image of the client application
|
String |
getApplicationLogoutUri() |
String |
getApplicationName()
Get the name of the third-party application
this client represents
|
String |
getApplicationWebUri()
Get the public URI of the third-party application.
|
String |
getClientId()
Get the client registration id
|
String |
getClientIpAddress() |
String |
getClientSecret()
Get the client secret
|
String |
getHomeRealm() |
Map<String,String> |
getProperties()
Get the list of additional client properties
|
List<String> |
getRedirectUris()
Get a list of URIs the AuthorizationService
may return the authorization code to
|
long |
getRegisteredAt() |
List<String> |
getRegisteredAudiences() |
List<String> |
getRegisteredScopes()
Get the list of registered scopes
|
UserSubject |
getResourceOwnerSubject()
Get the
UserSubject representing the resource owner
who has registered this client |
UserSubject |
getSubject()
Get the
UserSubject representing this Client
authentication |
String |
getTokenEndpointAuthMethod() |
boolean |
isConfidential()
Get the confidentiality status of this client application.
|
boolean |
isRegisteredDynamically() |
void |
setAllowedGrantTypes(List<String> allowedGrantTypes)
Set the list of access token grant types this client
can use to obtain the access tokens.
|
void |
setApplicationCertificates(List<String> applicationCertificates) |
void |
setApplicationDescription(String applicationDescription)
Set the description of the third-party application.
|
void |
setApplicationLogoUri(String logoPath)
Set the URI pointing to a logo image of the client application
|
void |
setApplicationLogoutUri(String applicationLogoutUri) |
void |
setApplicationName(String applicationName)
Set the name of the third-party application
this client represents
|
void |
setApplicationWebUri(String applicationWebUri)
Set the public URI of the third-party application.
|
void |
setClientId(String id) |
void |
setClientIpAddress(String clientIpAddress) |
void |
setClientSecret(String id) |
void |
setConfidential(boolean isConf)
Set the confidentiality status of this client application.
|
void |
setHomeRealm(String homeRealm)
Hint to the authentication system how the users
redirected by this client need to be authenticated
|
void |
setProperties(Map<String,String> properties)
Set the list of additional client properties
|
void |
setRedirectUris(List<String> redirectUris)
Sets a list of URIs the AuthorizationService
may return the authorization code to.
|
void |
setRegisteredAt(long registeredAt) |
void |
setRegisteredAudiences(List<String> registeredAudiences)
Set the list of registered audiences
|
void |
setRegisteredDynamically(boolean registeredDynamically) |
void |
setRegisteredScopes(List<String> registeredScopes)
Set the list of registered scopes.
|
void |
setResourceOwnerSubject(UserSubject resourceOwnerSubject)
Set the
UserSubject representing the resource owner
who has registered this client. |
void |
setSubject(UserSubject subject)
Set the
UserSubject representing this Client
authentication. |
void |
setTokenEndpointAuthMethod(String tokenEndpointAuthMethod) |
public Client()
public Client(String clientId, String clientSecret, boolean isConfidential, String applicationName)
public String getClientId()
public void setClientId(String id)
public String getClientSecret()
public void setClientSecret(String id)
public String getApplicationName()
public void setApplicationName(String applicationName)
applicationName
- the namepublic String getApplicationWebUri()
public void setApplicationWebUri(String applicationWebUri)
applicationWebUri
- the application URIpublic String getApplicationDescription()
public void setApplicationDescription(String applicationDescription)
applicationDescription
- the descriptionpublic String getApplicationLogoUri()
public void setApplicationLogoUri(String logoPath)
logoPath
- the logo URIpublic boolean isConfidential()
public void setConfidential(boolean isConf)
isConf
- true if the client is confidentialpublic List<String> getRedirectUris()
public void setRedirectUris(List<String> redirectUris)
redirectUris
- the redirect urispublic List<String> getAllowedGrantTypes()
public void setAllowedGrantTypes(List<String> allowedGrantTypes)
allowedGrantTypes
- the list of grant typespublic UserSubject getSubject()
UserSubject
representing this Client
authenticationpublic void setSubject(UserSubject subject)
UserSubject
representing this Client
authentication. This property may be set during the registration
in cases where a 3rd party client needs to authenticate first before
registering as OAuth2 client. This property may also wrap a clientId
in cases where a client credentials flow is usedsubject
- the user subjectpublic UserSubject getResourceOwnerSubject()
UserSubject
representing the resource owner
who has registered this clientpublic void setResourceOwnerSubject(UserSubject resourceOwnerSubject)
UserSubject
representing the resource owner
who has registered this client. This property may be set in cases where
each account (resource) owner registers account specific ClientsresourceOwnerSubject
- the resource owner user subjectpublic Map<String,String> getProperties()
public void setProperties(Map<String,String> properties)
properties
- the propertiespublic List<String> getRegisteredScopes()
public void setRegisteredScopes(List<String> registeredScopes)
registeredScopes
- the scopespublic void setRegisteredAudiences(List<String> registeredAudiences)
registeredAudiences
- audiencespublic void setApplicationCertificates(List<String> applicationCertificates)
public String getClientIpAddress()
public void setClientIpAddress(String clientIpAddress)
public long getRegisteredAt()
public void setRegisteredAt(long registeredAt)
public String getHomeRealm()
public void setHomeRealm(String homeRealm)
homeRealm
- user home realmpublic boolean isRegisteredDynamically()
public void setRegisteredDynamically(boolean registeredDynamically)
public String getApplicationLogoutUri()
public void setApplicationLogoutUri(String applicationLogoutUri)
public String getTokenEndpointAuthMethod()
public void setTokenEndpointAuthMethod(String tokenEndpointAuthMethod)
Apache CXF