org.bouncycastle.x509
Class AttributeCertificateHolder
java.lang.Object
org.bouncycastle.x509.AttributeCertificateHolder
- CertSelector
public class AttributeCertificateHolder
extends java.lang.Object
implements CertSelector
The Holder object.
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
}
This holder currently supports use of the baseCertificateID and the entityName.
Object | clone()
|
Principal[] | getEntityNames() - Return any principal objects inside the attribute certificate holder entity names field.
|
Principal[] | getIssuer() - Return the principals associated with the issuer attached to this holder
|
BigInteger | getSerialNumber() - Return the serial number associated with the issuer attached to this holder.
|
boolean | match(Certificate cert)
|
AttributeCertificateHolder
public AttributeCertificateHolder(X500Principal principal)
AttributeCertificateHolder
public AttributeCertificateHolder(X500Principal issuerName,
BigInteger serialNumber)
AttributeCertificateHolder
public AttributeCertificateHolder(X509Certificate cert)
throws CertificateParsingException
AttributeCertificateHolder
public AttributeCertificateHolder(X509Principal principal)
AttributeCertificateHolder
public AttributeCertificateHolder(X509Principal issuerName,
BigInteger serialNumber)
clone
public Object clone()
getEntityNames
public Principal[] getEntityNames()
Return any principal objects inside the attribute certificate holder entity names field.
- an array of Principal objects (usually X500Principal), null if no entity names field is set.
getIssuer
public Principal[] getIssuer()
Return the principals associated with the issuer attached to this holder
- an array of principals, null if no BaseCertificateID is set.
getSerialNumber
public BigInteger getSerialNumber()
Return the serial number associated with the issuer attached to this holder.
- the certificate serial number, null if no BaseCertificateID is set.
match
public boolean match(Certificate cert)