Package com.auth0.json.mgmt.client
Class Credential
java.lang.Object
com.auth0.json.mgmt.client.Credential
Class that represents an Auth0 application credential object. Related to the
ClientsEntity entity.-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new credentialCredential(String id) Create a new credentialCredential(String credentialType, String pem) Create a new credential -
Method Summary
Modifier and TypeMethodDescriptiongetAlg()getId()getKid()getName()getPem()voidSet the algorithmvoidsetCredentialType(String credentialType) Sets the credential typevoidsetExpiresAt(Date expiresAt) Set the expires_at value for this credentialvoidSets the credential namevoidsetParseExpiryFromCert(Boolean parseExpiryFromCert) Whether to parse expiry from x509 certificatevoidSets the credential's PEMvoidsetSubjectDn(String subjectDn) Sets the value of thesubject_dnfield
-
Constructor Details
-
Credential
Create a new credential- Parameters:
credentialType- the credential typepem- the PEM
-
Credential
Create a new credential- Parameters:
id- the ID of the credential
-
Credential
public Credential()Create a new credential
-
-
Method Details
-
getCredentialType
- Returns:
- the credential type
-
setCredentialType
Sets the credential type- Parameters:
credentialType- the credential type
-
getName
- Returns:
- the credential name
-
setName
Sets the credential name- Parameters:
name- the name of the credential
-
getPem
- Returns:
- the credential's PEM
-
setPem
Sets the credential's PEM- Parameters:
pem- the PEM of the credential
-
getId
- Returns:
- the ID of the credential
-
getKid
- Returns:
- the KID of the credential
-
getThumbprint
- Returns:
- the thumbprint of the credential
-
getCreatedAt
- Returns:
- the date the credential was created at
-
getAlg
- Returns:
- the algorithm of this credential
-
setAlg
Set the algorithm- Parameters:
alg- the algorithm
-
getUpdatedAt
- Returns:
- the time this credential was last updated
-
getExpiresAt
- Returns:
- the expiration time of this credential
-
setExpiresAt
Set the expires_at value for this credential- Parameters:
expiresAt- the time this credential should expire
-
getParseExpiryFromCert
- Returns:
- whether the expiry will be parsed from the x509 certificate
-
setParseExpiryFromCert
Whether to parse expiry from x509 certificate- Parameters:
parseExpiryFromCert- true to parse expiry; false otherwise.
-
getSubjectDn
- Returns:
- the value of the
subject_dnfield
-
setSubjectDn
Sets the value of thesubject_dnfield- Parameters:
subjectDn- the value of thesubject_dnfield
-