public class CertInformationHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static void |
getAuthorityInfoExtensionValue(byte[] extensionValue,
CertInformationCollector.CertSignatureInformation certInfo)
Extracts authority information access extension values from the given data.
|
protected static String |
getCrlUrlFromExtensionValue(byte[] extensionValue)
Gets the first CRL Url from given extension value.
|
protected static String |
getSha1Hash(byte[] content)
Gets the SHA-1-Hash has of given byte[]-content.
|
static boolean |
isSelfSigned(X509Certificate cert)
Checks whether the given certificate is self-signed (root).
|
static boolean |
verify(X509Certificate cert,
PublicKey key)
Verifies whether the certificate is signed by the given public key.
|
protected static String getSha1Hash(byte[] content)
content - to be hashedpublic static boolean isSelfSigned(X509Certificate cert) throws CertificateProccessingException
cert - to be checkedCertificateProccessingException - containing the cause, on multiple exception with the given datapublic static boolean verify(X509Certificate cert, PublicKey key) throws CertificateProccessingException
cert - Child certificate to checkkey - Fathers public key to checkCertificateProccessingException - containing the cause, on multiple exception with the
given dataprotected static void getAuthorityInfoExtensionValue(byte[] extensionValue,
CertInformationCollector.CertSignatureInformation certInfo)
throws IOException
extensionValue - byte[] of the extension value.certInfo - where to put the found valuesIOException - when there is a problem with the extensionValueprotected static String getCrlUrlFromExtensionValue(byte[] extensionValue) throws IOException
extensionValue - to get the extension value fromIOException - when there is a problem with the extensionValueCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.