|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.ac.AttributeCertificateInfo
public class AttributeCertificateInfo
This class represents the AttributeCertificateInfo ASN.1 construct.
Field Summary | |
---|---|
protected AttCertValidityPeriod |
attrCertValidityPeriod
|
protected java.util.Vector |
attributes
|
protected Extensions |
extensions
|
protected Holder |
holder
|
protected AttCertIssuer |
issuer
|
protected BIT_STRING |
issuerUniqueID
|
protected java.math.BigInteger |
serialNumber
|
protected AlgorithmID |
signature
|
protected AttCertVersion |
version
|
Constructor Summary | |
---|---|
protected |
AttributeCertificateInfo()
|
|
AttributeCertificateInfo(ASN1Object ao)
This constructor builds a AttributeCertificateInfo from a given ASN1Object. |
|
AttributeCertificateInfo(AttCertVersion version,
Holder holder,
AttCertIssuer issuer,
AlgorithmID signature,
java.math.BigInteger serialNumber,
AttCertValidityPeriod attrCertValidityPeriod,
java.util.Vector attributes,
BIT_STRING issuerUniqueID,
Extensions extensions)
This constructor builds an AttributeCertificateInfo from its components. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
void |
decode(ASN1Object ao)
This method decodes a given ASN1Object and sets the contents of this object to the contents of this ASN1Object. |
java.util.Vector |
getAttributes()
Returns the set of Attributes of the AC. |
byte[] |
getEncoded()
This method returns a DER encoding of the AttributeCertificateInfo, so you can compute the signature value for it. |
Extensions |
getExtensions()
Returns the optional set of Extensions of the AC. |
Holder |
getHolder()
Returns the Holder construct of the AC. |
AttCertIssuer |
getIssuer()
Returns the AttCertIssuer construct of the AC. |
BIT_STRING |
getIssuerUniqueID()
Returns the Issuer Unique ID optional field of the AC. |
java.math.BigInteger |
getSerialNumber()
Returns the Serial Number of the AC. |
AlgorithmID |
getSignatureAlgorithmID()
Returns the signature AlgorithmID construct of the AC. |
AttCertValidityPeriod |
getValidityPeriod()
Returns the Attribute Certificate Validity Period construct of the AC. |
AttCertVersion |
getVersion()
Returns the version of the AC. |
void |
setAttributes(java.util.Vector attributes)
Sets the set of Attributes of the AC. |
void |
setExtensions(Extensions extensions)
Sets the optional set of Extensions of the AC. |
void |
setHolder(Holder holder)
Sets the Holder construct of the AC. |
void |
setIssuer(AttCertIssuer issuer)
Sets the AttCertIssuer construct of the AC. |
void |
setIssuerUniqueID(BIT_STRING issuerUniqueID)
Sets the Issuer Unique ID optional field of the AC. |
void |
setSerialNumber(java.math.BigInteger serialNumber)
Sets the Serial Number of the AC. |
void |
setSignatureAlgorithmID(AlgorithmID signature)
Sets the signature AlgorithmID construct of the AC. |
void |
setValidityPeriod(AttCertValidityPeriod validityPeriod)
Sets the Attribute Certificate Validity Period construct of the AC. |
void |
setVersion(AttCertVersion version)
Sets the version of the AC. |
ASN1Object |
toASN1Object()
This method returns the ASN1Object of the AttributeCertificateInfo. |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String ident)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AttCertVersion version
protected Holder holder
protected AttCertIssuer issuer
protected AlgorithmID signature
protected java.math.BigInteger serialNumber
protected AttCertValidityPeriod attrCertValidityPeriod
protected java.util.Vector attributes
protected BIT_STRING issuerUniqueID
protected Extensions extensions
Constructor Detail |
---|
protected AttributeCertificateInfo()
public AttributeCertificateInfo(ASN1Object ao) throws CodingException
ao
- - the ASN1Object of the AttributeCertificateInfo
CodingException
public AttributeCertificateInfo(AttCertVersion version, Holder holder, AttCertIssuer issuer, AlgorithmID signature, java.math.BigInteger serialNumber, AttCertValidityPeriod attrCertValidityPeriod, java.util.Vector attributes, BIT_STRING issuerUniqueID, Extensions extensions)
version
- - the AttCertVersion with the version of this AC; the
version represents the version of the AC spec: some features are not
present in v1 ACs (e.g. AttCertIssuer can only be GeneralNames in
v1 ACs); if null, the default version will be used (V1)holder
- - the Holder of the ACissuer
- - the AttCertIssuer with the issuer of this ACsignature
- - the AlgorithmID of the signature algorithmserialNumber
- - the BigInteger containing the serial number of the ACattrCertValidityPeriod
- - the AttCertValidityPeriod with the validity
period of this ACattributes
- - a Vector of attributes; each element must be an
Attribute; cannot be null and should contain at least one elementissuerUniqueID
- - the BIT_STRING of the issuer unique identifier;
can be null, if it is not presentextensions
- - the Extensions of this AC; can be null, if no
extensions are present in this ACMethod Detail |
---|
public AttCertVersion getVersion()
public void setVersion(AttCertVersion version)
public Holder getHolder()
public void setHolder(Holder holder)
public AttCertIssuer getIssuer()
public void setIssuer(AttCertIssuer issuer)
public AlgorithmID getSignatureAlgorithmID()
public void setSignatureAlgorithmID(AlgorithmID signature)
public java.math.BigInteger getSerialNumber()
public void setSerialNumber(java.math.BigInteger serialNumber)
public AttCertValidityPeriod getValidityPeriod()
public void setValidityPeriod(AttCertValidityPeriod validityPeriod)
public java.util.Vector getAttributes()
public void setAttributes(java.util.Vector attributes)
public BIT_STRING getIssuerUniqueID()
public void setIssuerUniqueID(BIT_STRING issuerUniqueID)
public Extensions getExtensions()
public void setExtensions(Extensions extensions)
public ASN1Object toASN1Object() throws CodingException
CodingException
public void decode(ASN1Object ao) throws CodingException
ao
- - the ASN1Object with the contents of AttributeCertificateInfo;
must be a SEQUENCE of elements in the same order as they appear in the
constructor prototype
CodingException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String ident)
public java.lang.Object clone()
clone
in class java.lang.Object
public byte[] getEncoded() throws CodingException
iaik.asn1.CodingException
- if an error occurs while encoding the
construct
CodingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |