public class CertificatePoliciesExtension
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static CertificatePoliciesExtension |
getCertificatePoliciesExtension(java.security.cert.X509Certificate cert) |
gets the CertificatePoliciesExtension object given a
X509Certificate object. |
CertificatePolicy[] |
getPolicies() |
|
boolean |
isCritical() |
public static CertificatePoliciesExtension getCertificatePoliciesExtension(java.security.cert.X509Certificate cert) throws java.security.cert.CertificateParsingException
X509Certificate
object.cert
- X509Certificate to retrieve the extension from.CertificatePoliciesExtension
objectjava.security.cert.CertificateParsingException
- if we could not parse the certificate extension.public boolean isCritical()
public CertificatePolicy[] getPolicies()