APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.x509

public Class InhibitAnyPolicyExtension

extends Extension
Class Inheritance
Imports
java.io.IOException, sun.security.util.*

This class represents the Inhibit Any-Policy Extension.

The inhibit any-policy extension can be used in certificates issued to CAs. The inhibit any-policy indicates that the special any-policy OID, with the value {2 5 29 32 0}, is not considered an explicit match for other certificate policies. The value indicates the number of additional certificates that may appear in the path before any- policy is no longer permitted. For example, a value of one indicates that any-policy may be processed in certificates issued by the sub- ject of this certificate, but not in additional certificates in the path.

This extension MUST be critical.

The ASN.1 syntax for this extension is:

id-ce-inhibitAnyPolicy OBJECT IDENTIFIER ::=  { id-ce 54 }

InhibitAnyPolicy ::= SkipCerts

SkipCerts ::= INTEGER (0..MAX)
Author
Anne Anderson
See Also
Extension

Field Summary

Modifier and TypeField and Description
public static ObjectIdentifier
AnyPolicy_Id

Object identifier for "any-policy"

public static final String
private int
Inherited from sun.security.x509.Extension:
criticalextensionIdextensionValue

Constructor Summary

AccessConstructor and Description
public
InhibitAnyPolicyExtension(int
specifies the depth of the certification path. Use value of -1 to request unlimited depth.
skipCerts
)

Default constructor for this object.

public
InhibitAnyPolicyExtension(Boolean
criticality flag to use. Must be true for this extension.
critical
,
Object
a byte array holding the DER-encoded extension value.
value
)

Create the extension from the passed DER encoded value of the same.

Method Summary

Modifier and TypeMethod and Description
public void
encode(DerOutputStream
the DerOutputStream to encode the extension to.
out
)

Overrides sun.security.x509.Extension.encode.

Implements sun.security.util.DerEncoder.encode.

Encode this extension value to the output stream.

private void
public String

Returns:

name of extension.
getName
()

Overrides sun.security.x509.Extension.getName.

Return the name of this extension.

public int
public String
toString()

Overrides sun.security.x509.Extension.toString.

Return user readable form of extension.

Inherited from sun.security.x509.Extension:
encodeequalsgetExtensionIdgetExtensionValuegetIdgetValuehashCodeisCriticalnewExtension

Field Detail

AnyPolicy_Idback to summary
public static ObjectIdentifier AnyPolicy_Id

Object identifier for "any-policy"

NAMEback to summary
public static final String NAME
skipCertsback to summary
private int skipCerts

Constructor Detail

InhibitAnyPolicyExtensionback to summary
public InhibitAnyPolicyExtension(int skipCerts)

Default constructor for this object.

Parameters
skipCerts:int

specifies the depth of the certification path. Use value of -1 to request unlimited depth.

InhibitAnyPolicyExtensionback to summary
public InhibitAnyPolicyExtension(Boolean critical, Object value) throws IOException

Create the extension from the passed DER encoded value of the same.

Parameters
critical:Boolean

criticality flag to use. Must be true for this extension.

value:Object

a byte array holding the DER-encoded extension value.

Exceptions
IOException:
on error.
ClassCastException:
if value is not an array of bytes

Method Detail

encodeback to summary
public void encode(DerOutputStream out)

Overrides sun.security.x509.Extension.encode.

Implements sun.security.util.DerEncoder.encode.

Encode this extension value to the output stream.

Parameters
out:DerOutputStream

the DerOutputStream to encode the extension to.

Annotations
@Override
encodeThisback to summary
private void encodeThis()
getNameback to summary
public String getName()

Overrides sun.security.x509.Extension.getName.

Return the name of this extension.

Returns:String

name of extension.

Annotations
@Override
getSkipCertsback to summary
public int getSkipCerts()
toStringback to summary
public String toString()

Overrides sun.security.x509.Extension.toString.

Return user readable form of extension.