|
|||||||||
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.PolicyMappings
This class builds and holds the
PolicyMappings
extension. It is used in
certificate authority (CA) certificates and lists one
or more pairs of object identifiers (OIDs).
Each pair includes an issuerDomainPolicy
and a subjectDomainPolicy
. The pairing
indicates that the issuing CA considers its
issuerDomainPolicy
equivalent to the
subject CA's subjectDomainPolicy
. The
issuing CA's users could accept an
issuerDomainPolicy
for certain
applications. The policy mapping tells the issuing
CA's users which policies associated with the subject
CA are comparable to the policy they accept.
policyMappings EXTENSION ::= { SYNTAX PolicyMappingsSyntax IDENTIFIED BY id-ce-policyMappings } PolicyMappingsSyntax ::= SEQUENCE SIZE (1..MAX) OF SEQUENCE { issuerDomainPolicy CertPolicyId, subjectDomainPolicy CertPolicyId } CertPolicyId ::= OBJECT IDENTIFIER |
See Also
Constructor Summary |
|
PolicyMappings()
Constructs an empty |
|
PolicyMappings(byte[] issuerDomainPolicy,
int issuerOffset,
int issuerLen,
byte[] subjectDomainPolicy,
int subjectOffset,
int subjectLen,
boolean criticality)
Creates 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. |
byte[] |
getIssuerDomainPolicy(int index)
Gets the specified issuer domain policy value. |
int |
getPolicyCount()
Gets the policy count in this object. |
byte[] |
getSubjectDomainPolicy(int index)
Gets the subject domain policy values. |
void |
setDomainPolicy(byte[] issData,
int issOffset,
int issLen,
byte[] domData,
int domOffset,
int domLen)
Sets the domain policy values. |
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 PolicyMappings()
PolicyMappings
object.public PolicyMappings(byte[] issuerDomainPolicy, int issuerOffset, int issuerLen, byte[] subjectDomainPolicy, int subjectOffset, int subjectLen, boolean criticality)
PolicyMappings
object and initializes
it with the given values.Parameters
issuerDomainPolicy | The certificate policy that is recognized in the issuing CA's domain. | ||
issuerOffset | The offset into the issuerDomainPolicy array where the issuer data begins. | ||
issuerLen | The length of the data in the issuerDomainPolicy array. | ||
subjectDomainPolicy | The certificate policy that is recognized in the subject CA's domain. | ||
subjectOffset | The offset into the subjectDomainPolicy array where the subject data begins. | ||
subjectLen | The length of the data in the subjectDomainPolicy array. | ||
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 begins. |
Throws
CertificateException
- If the encoding is invalid for this
extension.public void setDomainPolicy(byte[] issData, int issOffset, int issLen, byte[] domData, int domOffset, int domLen)
Parameters
issData | The issuer domain policy OID value. | ||
issOffset | The offset into the issData array. | ||
issLen | The length of the data in the issData array. | ||
domData | The subject domain policy OID value. | ||
domOffset | The offset into the domData array. | ||
domLen | The length of the data in the domData array. |
public byte[] getIssuerDomainPolicy(int index) throws CertificateException
Parameters
index | An index that specifies the policy mapping pair. |
Returns
byte
array that contains the
issuer domain policy OID value.
Throws
CertificateException
- If the specified
index is invalid.public byte[] getSubjectDomainPolicy(int index) throws CertificateException
Parameters
index | The index that specifies the policy mapping pair. |
Returns
byte
array that contains the
subject domain policy OID value.
Throws
CertificateException
- If the specified
index is invalid.public int getPolicyCount()
Returns
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
Policy Mappings
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 |