Holder ::= SEQUENCE {
baseCertificateID [0] IssuerSerial OPTIONAL,
-- the issuer and serial number of
-- the holder's Public Key Certificate
entityName [1] GeneralNames OPTIONAL,
-- the name of the claimant or role
objectDigestInfo [2] ObjectDigestInfo OPTIONAL
-- used to directly authenticate the holder,
-- for example, an executable
}
Note
If objectDigestInfo comparisons are to be carried out the static method setDigestCalculatorProvider must be called once to configure the class to do the necessary calculations.
| Modifier and Type | Field and Description |
|---|---|
| private static DigestCalculatorProvider | |
| pack-priv final Holder |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | AttributeCertificateHolder(X500Name
name of associated certificate's issuer. issuerName, BigInteger serial number of associated certificate. serialNumber)Create a holder using the baseCertificateID element. |
| public | AttributeCertificateHolder(X509CertificateHolder
the certificate to be associated with this holder. cert)Create a holder using the baseCertificateID option based on the passed in associated certificate, |
| public | AttributeCertificateHolder(X500Name
the entityName to be associated with the attribute certificate. principal)Create a holder using the entityName option based on the passed in principal. |
| public | AttributeCertificateHolder(int
The digest object type. digestedObjectType, ASN1ObjectIdentifier The algorithm identifier for the hash. digestAlgorithm, ASN1ObjectIdentifier The object type ID if
otherObjectTypeID, byte[] digestedObjectType is
otherObjectDigest.The hash value. objectDigest)Constructs a holder for v2 attribute certificates with a hash value for some type of object. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides java. Implements org. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| private GeneralNames | |
| public AlgorithmIdentifier | Returns: digest AlgorithmIdentifier ornull if ObjectDigestInfo is absent.Returns algorithm identifier for the digest used if ObjectDigestInfo is present. |
| public int | Returns: The digest object type or -1 if no object digest info is set.Returns the digest object type if an object digest info is used. |
| public X500Name[] | Returns: an array of Principal objects (usually X500Principal), null if no entity names field is set.Return any principal objects inside the attribute certificate holder entity names field. |
| public X500Name[] | Returns: an array of principals, null if no BaseCertificateID is set.Return the principals associated with the issuer attached to this holder |
| public byte[] | Returns: The hash ornull if ObjectDigestInfo is absent.Returns the hash if an object digest info is used. |
| public ASN1ObjectIdentifier | Returns: The digest algorithm ID ornull if no object
digest info is set.Returns the digest algorithm ID if an object digest info is used. |
| private X500Name[] | |
| public BigInteger | Returns: the certificate serial number, null if no BaseCertificateID is set.Return the serial number associated with the issuer attached to this holder. |
| public int | |
| public boolean | match(Object
the object to be matched. obj)Implements org. |
| private boolean | |
| public static void | setDigestCalculatorProvider(DigestCalculatorProvider
a provider of digest calculators. digCalcProvider)Set a digest calculator provider to be used if matches are attempted using ObjectDigestInfo, |
| digestCalculatorProvider | back to summary |
|---|---|
| private static DigestCalculatorProvider digestCalculatorProvider | |
| holder | back to summary |
|---|---|
| pack-priv final Holder holder | |
| AttributeCertificateHolder | back to summary |
|---|---|
| pack-priv AttributeCertificateHolder(ASN1Sequence seq) | |
| AttributeCertificateHolder | back to summary |
|---|---|
| public AttributeCertificateHolder(X500Name issuerName, BigInteger serialNumber) Create a holder using the baseCertificateID element.
| |
| AttributeCertificateHolder | back to summary |
|---|---|
| public AttributeCertificateHolder(X509CertificateHolder cert) Create a holder using the baseCertificateID option based on the passed in associated certificate,
| |
| AttributeCertificateHolder | back to summary |
|---|---|
| public AttributeCertificateHolder(X500Name principal) Create a holder using the entityName option based on the passed in principal.
| |
| AttributeCertificateHolder | back to summary |
|---|---|
| public AttributeCertificateHolder(int digestedObjectType, ASN1ObjectIdentifier digestAlgorithm, ASN1ObjectIdentifier otherObjectTypeID, byte[] objectDigest) Constructs a holder for v2 attribute certificates with a hash value for some type of object.
This cannot be used if a v1 attribute certificate is used.
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Implements org. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| generateGeneralNames | back to summary |
|---|---|
| private GeneralNames generateGeneralNames(X500Name principal) | |
| getDigestAlgorithm | back to summary |
|---|---|
| public AlgorithmIdentifier getDigestAlgorithm() Returns algorithm identifier for the digest used if ObjectDigestInfo is present.
| |
| getDigestedObjectType | back to summary |
|---|---|
| public int getDigestedObjectType() Returns the digest object type if an object digest info is used.
| |
| getEntityNames | back to summary |
|---|---|
| public X500Name[] getEntityNames() Return any principal objects inside the attribute certificate holder entity names field.
| |
| getIssuer | back to summary |
|---|---|
| public X500Name[] getIssuer() Return the principals associated with the issuer attached to this holder
| |
| getObjectDigest | back to summary |
|---|---|
| public byte[] getObjectDigest() Returns the hash if an object digest info is used.
| |
| getOtherObjectTypeID | back to summary |
|---|---|
| public ASN1ObjectIdentifier getOtherObjectTypeID() Returns the digest algorithm ID if an object digest info is used.
| |
| getPrincipals | back to summary |
|---|---|
| private X500Name[] getPrincipals(GeneralName[] names) | |
| getSerialNumber | back to summary |
|---|---|
| public BigInteger getSerialNumber() Return the serial number associated with the issuer attached to this holder.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| match | back to summary |
|---|---|
| public boolean match(Object obj) Implements org. Doc from org. Match the passed in object, returning true if it would be selected by this selector, false otherwise.
| |
| matchesDN | back to summary |
|---|---|
| private boolean matchesDN(X500Name subject, GeneralNames targets) | |
| setDigestCalculatorProvider | back to summary |
|---|---|
| public static void setDigestCalculatorProvider(DigestCalculatorProvider digCalcProvider) Set a digest calculator provider to be used if matches are attempted using ObjectDigestInfo,
| |