public interface GordianCertificate
Certificate API.
  • Method Details

    • getSubject

      GordianCertificateId getSubject()
      Obtain the subject of the certificate.
      Returns:
      the subject
    • getIssuer

      Obtain the issuer of the certificate.
      Returns:
      the issuer name
    • getKeyPair

      GordianKeyPair getKeyPair()
      Obtain the keyPair of the certificate.
      Returns:
      the keyPair
    • getEncoded

      byte[] getEncoded()
      Obtain the encoded representation of the certificate.
      Returns:
      the encoded representation
    • isValidNow

      default boolean isValidNow()
      Is the certificate valid at this moment?
      Returns:
      true/false
    • isValidOnDate

      boolean isValidOnDate(Date pDate)
      Is the certificate valid on the specified date?
      Parameters:
      pDate - the date to test
      Returns:
      true/false
    • isSelfSigned

      boolean isSelfSigned()
      Is this certificate self-signed?
      Returns:
      true/false
    • getUsage

      Obtain the keyPair usage?
      Returns:
      the usage
    • validateCertificate

      boolean validateCertificate(GordianCertificate pSigner) throws GordianException
      Validate the certificate.
      Parameters:
      pSigner - the signer of the certificate
      Returns:
      valid? true/false
      Throws:
      GordianException - on error