FileDocCategorySizeDatePackage
CommitmentTypeIndication.javaAPI DocAndroid 1.5 API2252Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.esf

CommitmentTypeIndication

public class CommitmentTypeIndication extends org.bouncycastle.asn1.ASN1Encodable

Fields Summary
private org.bouncycastle.asn1.DERObjectIdentifier
commitmentTypeId
private org.bouncycastle.asn1.ASN1Sequence
commitmentTypeQualifier
Constructors Summary
public CommitmentTypeIndication(org.bouncycastle.asn1.ASN1Sequence seq)

        commitmentTypeId = (DERObjectIdentifier)seq.getObjectAt(0);

        if (seq.size() > 1)
        {
            commitmentTypeQualifier = (ASN1Sequence)seq.getObjectAt(1);
        }
    
public CommitmentTypeIndication(org.bouncycastle.asn1.DERObjectIdentifier commitmentTypeId)

        this.commitmentTypeId = commitmentTypeId;
    
public CommitmentTypeIndication(org.bouncycastle.asn1.DERObjectIdentifier commitmentTypeId, org.bouncycastle.asn1.ASN1Sequence commitmentTypeQualifier)

        this.commitmentTypeId = commitmentTypeId;
        this.commitmentTypeQualifier = commitmentTypeQualifier;
    
Methods Summary
public org.bouncycastle.asn1.DERObjectIdentifiergetCommitmentTypeId()

        return commitmentTypeId;
    
public org.bouncycastle.asn1.ASN1SequencegetCommitmentTypeQualifier()

        return commitmentTypeQualifier;
    
public static org.bouncycastle.asn1.esf.CommitmentTypeIndicationgetInstance(java.lang.Object obj)

        if (obj == null || obj instanceof CommitmentTypeIndication)
        {
            return (CommitmentTypeIndication)obj;
        }

        return new CommitmentTypeIndication(ASN1Sequence.getInstance(obj));
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()
CommitmentTypeIndication ::= SEQUENCE {
commitmentTypeId CommitmentTypeIdentifier,
commitmentTypeQualifier SEQUENCE SIZE (1..MAX) OF
CommitmentTypeQualifier OPTIONAL }

        ASN1EncodableVector v = new ASN1EncodableVector();
        
        v.add(commitmentTypeId);

        if (commitmentTypeQualifier != null)
        {
            v.add(commitmentTypeQualifier);
        }
        
        return new DERSequence(v);