Class Credential

java.lang.Object
com.auth0.json.mgmt.client.Credential

public class Credential extends Object
Class that represents an Auth0 application credential object. Related to the ClientsEntity entity.
  • Constructor Details

    • Credential

      public Credential(String credentialType, String pem)
      Create a new credential
      Parameters:
      credentialType - the credential type
      pem - the PEM
    • Credential

      public Credential(String id)
      Create a new credential
      Parameters:
      id - the ID of the credential
    • Credential

      public Credential()
      Create a new credential
  • Method Details

    • getCredentialType

      public String getCredentialType()
      Returns:
      the credential type
    • setCredentialType

      public void setCredentialType(String credentialType)
      Sets the credential type
      Parameters:
      credentialType - the credential type
    • getName

      public String getName()
      Returns:
      the credential name
    • setName

      public void setName(String name)
      Sets the credential name
      Parameters:
      name - the name of the credential
    • getPem

      public String getPem()
      Returns:
      the credential's PEM
    • setPem

      public void setPem(String pem)
      Sets the credential's PEM
      Parameters:
      pem - the PEM of the credential
    • getId

      public String getId()
      Returns:
      the ID of the credential
    • getKid

      public String getKid()
      Returns:
      the KID of the credential
    • getThumbprint

      public String getThumbprint()
      Returns:
      the thumbprint of the credential
    • getCreatedAt

      public Date getCreatedAt()
      Returns:
      the date the credential was created at
    • getAlg

      public String getAlg()
      Returns:
      the algorithm of this credential
    • setAlg

      public void setAlg(String alg)
      Set the algorithm
      Parameters:
      alg - the algorithm
    • getUpdatedAt

      public Date getUpdatedAt()
      Returns:
      the time this credential was last updated
    • getExpiresAt

      public Date getExpiresAt()
      Returns:
      the expiration time of this credential
    • setExpiresAt

      public void setExpiresAt(Date expiresAt)
      Set the expires_at value for this credential
      Parameters:
      expiresAt - the time this credential should expire
    • getParseExpiryFromCert

      public Boolean getParseExpiryFromCert()
      Returns:
      whether the expiry will be parsed from the x509 certificate
    • setParseExpiryFromCert

      public void setParseExpiryFromCert(Boolean parseExpiryFromCert)
      Whether to parse expiry from x509 certificate
      Parameters:
      parseExpiryFromCert - true to parse expiry; false otherwise.
    • getSubjectDn

      public String getSubjectDn()
      Returns:
      the value of the subject_dn field
    • setSubjectDn

      public void setSubjectDn(String subjectDn)
      Sets the value of the subject_dn field
      Parameters:
      subjectDn - the value of the subject_dn field