FileDocCategorySizeDatePackage
InhibitAnyPolicy.javaAPI DocAndroid 1.5 API2640Wed May 06 22:41:06 BST 2009org.apache.harmony.security.x509

InhibitAnyPolicy

public class InhibitAnyPolicy extends ExtensionValue
InhibitAnyPolicy Certificate Extension (OID = 2.5.29.54) Its ASN.1 notation is as follows:
id-ce-inhibitAnyPolicy OBJECT IDENTIFIER ::= { id-ce 54 }

InhibitAnyPolicy ::= SkipCerts

SkipCerts ::= INTEGER (0..MAX)
(as specified in RFC 3280 http://www.ietf.org/rfc/rfc3280.txt).

Fields Summary
private int
skipCerts
Constructors Summary
public InhibitAnyPolicy(int skipCerts)
Create the object on the base of SkipCerts value.

        this.skipCerts = skipCerts;
    
public InhibitAnyPolicy(byte[] encoding)
Creates an object on the base of its encoded form.

        super(encoding);
        this.skipCerts = new BigInteger((byte[])
                ASN1Integer.getInstance().decode(encoding)).intValue();
    
Methods Summary
public voiddumpValue(java.lang.StringBuffer buffer, java.lang.String prefix)
Places the string representation of extension value into the StringBuffer object.

        buffer.append(prefix).append("Inhibit Any-Policy: ") //$NON-NLS-1$
            .append(skipCerts).append('\n");
    
public byte[]getEncoded()
Returns ASN.1 encoded form of the object.

return
a byte array containing ASN.1 encoded form.

        if (encoding == null) {
            encoding = ASN1Integer.getInstance()
                .encode(ASN1Integer.fromIntValue(skipCerts));
        }
        return encoding;
    
public intgetSkipCerts()
Return the value of the extension.

        return skipCerts;