|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.Holder
The Holder object.
For an v2 attribute certificate this is: 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 }
For an v1 attribute certificate this is: subject CHOICE { baseCertificateID [0] EXPLICIT IssuerSerial, -- associated with a Public Key Certificate subjectName [1] EXPLICIT GeneralNames }, -- associated with a name
Field Summary | |
static int |
V1_CERTIFICATE_HOLDER
|
static int |
V2_CERTIFICATE_HOLDER
|
Constructor Summary | |
Holder(GeneralNames entityName)
Constructs a holder with an entityName for V2 attribute certificates. |
|
Holder(GeneralNames entityName,
int version)
Constructs a holder with an entityName for V2 attribute certificates or with a subjectName for V1 attribute certificates. |
|
Holder(IssuerSerial baseCertificateID)
|
|
Holder(IssuerSerial baseCertificateID,
int version)
Constructs a holder from a IssuerSerial for a V1 or V2 certificate. . |
|
Holder(ObjectDigestInfo objectDigestInfo)
Constructs a holder from an object digest info. |
Method Summary | |
IssuerSerial |
getBaseCertificateID()
|
GeneralNames |
getEntityName()
Returns the entityName for an V2 attribute certificate or the subjectName for an V1 attribute certificate. |
static Holder |
getInstance(java.lang.Object obj)
|
ObjectDigestInfo |
getObjectDigestInfo()
|
int |
getVersion()
Returns 1 for V2 attribute certificates or 0 for V1 attribute certificates. |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding. |
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int V1_CERTIFICATE_HOLDER
public static final int V2_CERTIFICATE_HOLDER
Constructor Detail |
public Holder(IssuerSerial baseCertificateID)
public Holder(IssuerSerial baseCertificateID, int version)
baseCertificateID
- The IssuerSerial.version
- The version of the attribute certificate.public Holder(GeneralNames entityName)
entityName
- The entity or subject name.public Holder(GeneralNames entityName, int version)
entityName
- The entity or subject name.version
- The version of the attribute certificate.public Holder(ObjectDigestInfo objectDigestInfo)
objectDigestInfo
- The object digest info object.Method Detail |
public static Holder getInstance(java.lang.Object obj)
public int getVersion()
public IssuerSerial getBaseCertificateID()
public GeneralNames getEntityName()
public ObjectDigestInfo getObjectDigestInfo()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |