Interface GordianCertificate
public interface GordianCertificate
Certificate API.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Obtain the encoded representation of the certificate.Obtain the issuer of the certificate.Obtain the keyPair of the certificate.Obtain the subject of the certificate.getUsage()Obtain the keyPair usage?booleanIs this certificate self-signed?default booleanIs the certificate valid at this moment?booleanisValidOnDate(Date pDate) Is the certificate valid on the specified date?booleanvalidateCertificate(GordianCertificate pSigner) Validate the certificate.
-
Method Details
-
getSubject
GordianCertificateId getSubject()Obtain the subject of the certificate.- Returns:
- the subject
-
getIssuer
GordianCertificateId 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
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
GordianKeyPairUsage getUsage()Obtain the keyPair usage?- Returns:
- the usage
-
validateCertificate
Validate the certificate.- Parameters:
pSigner- the signer of the certificate- Returns:
- valid? true/false
- Throws:
GordianException- on error
-