Class Client
- java.lang.Object
-
- com.tivoli.am.fim.trustserver.sts.oauth20.Client
-
- All Implemented Interfaces:
java.io.Serializable
public class Client extends java.lang.Object implements java.io.Serializable
Implementation of OAuth20Client Model of the OAUTH_CLIENT_INSTANCE table- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Client(long definition_id, java.lang.String clientId, java.lang.String clientSecret, java.lang.String displayName, java.lang.String[] redirectUris, java.lang.String companyName, java.lang.String companyUrl, java.lang.String contactPerson, java.lang.String emailAddress, java.lang.String phoneNumber, java.lang.String contactType, java.lang.String otherInfo, boolean requirePkce, java.lang.String jwksUri, java.lang.String encryptionDb, java.lang.String encryptionCert, JSONObject extendedData)
Client(java.lang.String clientId, java.lang.String clientSecret, java.lang.String displayName, java.lang.String[] redirectUris, java.lang.String companyName, java.lang.String companyUrl, java.lang.String contactPerson, java.lang.String emailAddress, java.lang.String phoneNumber, java.lang.String contactType, java.lang.String otherInfo, boolean requirePkce, java.lang.String jwksUri, java.lang.String encryptionDb, java.lang.String encryptionCert, JSONObject extendedData)
Client(java.lang.String clientId, java.lang.String clientSecret, java.lang.String displayName, java.lang.String redirectUri, java.lang.String companyName, java.lang.String companyUrl, java.lang.String contactPerson, java.lang.String emailAddress, java.lang.String phoneNumber, java.lang.String contactType, java.lang.String otherInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClientId()
Get the client idjava.lang.String
getClientSecret()
Get the client secretjava.lang.String
getCompanyName()
Get the company name for this clientjava.lang.String
getCompanyUrl()
Get the company url for this clientjava.lang.String
getContactPerson()
Get the contact person for this clientjava.lang.String
getContactType()
Get the contact type for this clientlong
getDefinitionID()
java.lang.String
getDisplayName()
Get the client friendly namejava.lang.String
getEmailAddress()
Get the email address for this clientjava.lang.String
getEncryptionCert()
java.lang.String
getEncryptionDb()
java.lang.String
getExtendedData()
returns a string of JSON, intended to have the javascript method JSON.parse() invoked on it.int
getInstanceId()
java.lang.String
getJwks()
java.lang.String
getJwksUri()
java.lang.String
getOtherInfo()
Get any further information for this clientjava.lang.String
getPhoneNumber()
Get the phone number for this clientjava.lang.String
getRedirectUri()
Get the clients first configured redirect URI.java.lang.String[]
getRedirectUris()
Get the clients configured redirect URIs.boolean
isConfidential()
Return whether or not this client can be considered confidential.boolean
isRequirePkce()
void
setDefinitionID(int definition_id)
void
setInstanceId(int id)
void
setJwks(java.lang.String jwks)
void
setRedirectUris(java.lang.String[] redirectUris)
Replace the client redirect URIs with the provided valuesvoid
setRequirePkce(boolean require)
java.lang.String
toString()
-
-
-
Constructor Detail
-
Client
public Client(java.lang.String clientId, java.lang.String clientSecret, java.lang.String displayName, java.lang.String[] redirectUris, java.lang.String companyName, java.lang.String companyUrl, java.lang.String contactPerson, java.lang.String emailAddress, java.lang.String phoneNumber, java.lang.String contactType, java.lang.String otherInfo, boolean requirePkce, java.lang.String jwksUri, java.lang.String encryptionDb, java.lang.String encryptionCert, JSONObject extendedData)
-
Client
public Client(long definition_id, java.lang.String clientId, java.lang.String clientSecret, java.lang.String displayName, java.lang.String[] redirectUris, java.lang.String companyName, java.lang.String companyUrl, java.lang.String contactPerson, java.lang.String emailAddress, java.lang.String phoneNumber, java.lang.String contactType, java.lang.String otherInfo, boolean requirePkce, java.lang.String jwksUri, java.lang.String encryptionDb, java.lang.String encryptionCert, JSONObject extendedData)
-
Client
public Client(java.lang.String clientId, java.lang.String clientSecret, java.lang.String displayName, java.lang.String redirectUri, java.lang.String companyName, java.lang.String companyUrl, java.lang.String contactPerson, java.lang.String emailAddress, java.lang.String phoneNumber, java.lang.String contactType, java.lang.String otherInfo)
-
-
Method Detail
-
getClientId
public java.lang.String getClientId()
Get the client id
-
getClientSecret
public java.lang.String getClientSecret()
Get the client secret
-
getDisplayName
public java.lang.String getDisplayName()
Get the client friendly name
-
getRedirectUri
public java.lang.String getRedirectUri()
Get the clients first configured redirect URI. Not guaranteed to match the URI presented on this request
-
getRedirectUris
public java.lang.String[] getRedirectUris()
Get the clients configured redirect URIs. Not guaranteed to match the URI presented on this request, if the client does not have redirect_uri configured it returns null.
-
setRedirectUris
public void setRedirectUris(java.lang.String[] redirectUris)
Replace the client redirect URIs with the provided values
-
isConfidential
public boolean isConfidential()
Return whether or not this client can be considered confidential. A convenience function which just checks that getClientSecret() doesnt return null or an empty string. a @returns true if client secret is not null or empty. False if client secret is null or empty.
-
getCompanyName
public java.lang.String getCompanyName()
Get the company name for this client
-
getCompanyUrl
public java.lang.String getCompanyUrl()
Get the company url for this client
-
getContactPerson
public java.lang.String getContactPerson()
Get the contact person for this client
-
getEmailAddress
public java.lang.String getEmailAddress()
Get the email address for this client
-
getPhoneNumber
public java.lang.String getPhoneNumber()
Get the phone number for this client
-
getContactType
public java.lang.String getContactType()
Get the contact type for this client
-
getOtherInfo
public java.lang.String getOtherInfo()
Get any further information for this client
-
getExtendedData
public java.lang.String getExtendedData()
returns a string of JSON, intended to have the javascript method JSON.parse() invoked on it.
-
setDefinitionID
public void setDefinitionID(int definition_id)
-
getDefinitionID
public long getDefinitionID()
-
setInstanceId
public void setInstanceId(int id)
-
getInstanceId
public int getInstanceId()
-
setRequirePkce
public void setRequirePkce(boolean require)
-
isRequirePkce
public boolean isRequirePkce()
-
getJwksUri
public java.lang.String getJwksUri()
-
getJwks
public java.lang.String getJwks()
-
setJwks
public void setJwks(java.lang.String jwks)
-
getEncryptionDb
public java.lang.String getEncryptionDb()
-
getEncryptionCert
public java.lang.String getEncryptionCert()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-