public class X509CertificateUtils extends Object
| Constructor | Description |
|---|---|
X509CertificateUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
hasMatchingIssuerAndSubject(X509Certificate cert) |
Checks if the issuer DN and the subject DN of the specified X.509
certificate match.
|
static boolean |
hasValidSignature(X509Certificate cert,
PublicKey pubKey) |
Validates the signature of a X.509 certificate with the specified
public key.
|
static boolean |
isSelfIssued(X509Certificate cert) |
Checks if the specified X.509 certificate is self-issued, i.e.
|
static boolean |
isSelfSigned(X509Certificate cert) |
Checks if the specified X.509 certificate is self-signed, i.e.
|
public X509CertificateUtils()
public static boolean hasMatchingIssuerAndSubject(X509Certificate cert)
cert - The X.509 certificate. Must not be null.true if the issuer DN and and subject DN match, else
false.public static boolean isSelfIssued(X509Certificate cert)
cert - The X.509 certificate. Must not be null.true if the X.509 certificate is self-issued, else
false.public static boolean isSelfSigned(X509Certificate cert)
cert - The X.509 certificate. Must not be null.true if the X.509 certificate is self-signed, else
false.public static boolean hasValidSignature(X509Certificate cert, PublicKey pubKey)
cert - The X.509 certificate. Must not be null.pubKey - The public key to use for the validation. Must not be
null.true if the signature is valid, else false.Copyright © 2018 Connect2id Ltd.. All rights reserved.