|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.cert.extensions.X509V3Extension | +--com.rsa.certj.cert.extensions.InhibitAnyPolicy
This class holds, encodes, and decodes the
InhibitAnyPolicy
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
subject of this certificate, but not in additional certificates in the path.
id-ce-inhibitAnyPolicy OBJECT IDENTIFIER ::= { id-ce 54 } InhibitAnyPolicy ::= SkipCerts SkipCerts ::= INTEGER (0..MAX) |
See Also
Constructor Summary |
|
InhibitAnyPolicy()
Constructs an empty |
|
InhibitAnyPolicy(int skipCerts,
boolean criticality)
Constructs a |
Method Summary |
|
clone()
Overrides the default |
|
void |
decodeValue(byte[] valueBER,
int offset)
Decode the value. |
int |
derEncodeValue(byte[] encoding,
int offset)
Place the encoding of the value into encoding, beginning at offset. |
int |
derEncodeValueInit()
Initialize for encoding the value. |
int |
getSkipCerts()
Gets the value of this object, the number of additional certificates that may appear in the path before any-policy is no longer permitted. |
void |
setSkipCerts(int number)
Sets the value of this object, the number of certificates to skip. |
Methods inherited from class com.rsa.certj.cert.extensions.X509V3Extension |
extend, getCriticality, getDEREncoding, getDERLen, getExtensionType, getExtensionTypeString, getInstance, getNextBEROffset, isExtensionType, setCriticality, setEncoding, setSpecialOID, setStandardOID |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InhibitAnyPolicy()
InhibitAnyPolicy
object.public InhibitAnyPolicy(int skipCerts, boolean criticality)
InhibitAnyPolicy
object and initializes it
with the given value and the specified criticality. The
value of InhibitAnyPolicy indicates the number
of additional certificates that may appear in the path before any-
policy is no longer permitted.Parameters
skipCerts | The | ||
criticality | The user-specified criticality. |
Method Detail |
public void decodeValue(byte[] valueBER, int offset) throws CertificateException
Overrides
decodeValue
in class X509V3Extension
Parameters
valueBER | The BER encoding of the extension's value. | ||
offset | The offset into valueBER where the encoding actually begins. |
Throws
CertificateException
- If the encoding is
invalid for this extension.public void setSkipCerts(int number)
Parameters
number | the number of additional certificates that may appear in the path before any-policy is no longer permitted. |
public int getSkipCerts()
0
.
Returns
int
that contains number of certificates to skip.public int derEncodeValueInit()
Overrides
derEncodeValueInit
in class X509V3Extension
Returns
public int derEncodeValue(byte[] encoding, int offset)
Overrides
derEncodeValue
in class X509V3Extension
Parameters
encoding | The byte array into which the result will be placed. | ||
offset | The offest into encoding where the writing is to begin. |
Returns
public Object clone() throws CloneNotSupportedException
clone
method
to get a deeper clone.
Overrides
clone
in class X509V3Extension
Returns
InhibitAnyPolicy
object,
a copy of this object.
Throws
CloneNotSupportedException
- If the
cloning operation is not successful.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |