org.bouncycastle.x509
Class AttributeCertificateHolder
java.lang.Object
org.bouncycastle.x509.AttributeCertificateHolder
- CertSelector, org.bouncycastle.util.Selector
public class AttributeCertificateHolder
extends java.lang.Object
implements CertSelector, org.bouncycastle.util.Selector
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()
|
boolean | equals(Object obj)
|
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.
|
int | hashCode()
|
boolean | match(Certificate cert)
|
boolean | match(Object obj)
|
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()
- clone in interface org.bouncycastle.util.Selector
equals
public boolean equals(Object obj)
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.
hashCode
public int hashCode()
match
public boolean match(Certificate cert)
match
public boolean match(Object obj)
- match in interface org.bouncycastle.util.Selector