Example usage for org.bouncycastle.asn1.x509 X509Extensions InhibitAnyPolicy

List of usage examples for org.bouncycastle.asn1.x509 X509Extensions InhibitAnyPolicy

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.x509 X509Extensions InhibitAnyPolicy.

Prototype

ASN1ObjectIdentifier InhibitAnyPolicy

To view the source code for org.bouncycastle.asn1.x509 X509Extensions InhibitAnyPolicy.

Click Source Link

Document

Inhibit Any Policy

Usage

From source file:com.otterca.common.crypto.X509CertificateBuilderImpl.java

License:Apache License

/**
 * Set Inhibit Any-Policy (RFC3280 4.2.1.15).
 *//*from ww  w.j a va 2  s  .co m*/
protected void setInhibitAnyPolicy() {
    if (inhibitAnyPolicyDepth != null) {
        generator.addExtension(X509Extensions.InhibitAnyPolicy, true, new DERInteger(inhibitAnyPolicyDepth));
    }
}