Bouncy Castle Cryptography Library 1.77.00

org.bouncycastle.asn1.crmf
Class AttributeTypeAndValue

java.lang.Object
  extended byorg.bouncycastle.asn1.ASN1Object
      extended byorg.bouncycastle.asn1.crmf.AttributeTypeAndValue
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class AttributeTypeAndValue
extends org.bouncycastle.asn1.ASN1Object


Constructor Summary
AttributeTypeAndValue(org.bouncycastle.asn1.ASN1ObjectIdentifier type, org.bouncycastle.asn1.ASN1Encodable value)
           
AttributeTypeAndValue(java.lang.String oid, org.bouncycastle.asn1.ASN1Encodable value)
           
 
Method Summary
static AttributeTypeAndValue getInstance(java.lang.Object o)
           
 org.bouncycastle.asn1.ASN1ObjectIdentifier getType()
           
 org.bouncycastle.asn1.ASN1Encodable getValue()
           
 org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
          AttributeTypeAndValue ::= SEQUENCE { type OBJECT IDENTIFIER, value ANY DEFINED BY type }
 
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
 

Constructor Detail

AttributeTypeAndValue

public AttributeTypeAndValue(java.lang.String oid,
                             org.bouncycastle.asn1.ASN1Encodable value)

AttributeTypeAndValue

public AttributeTypeAndValue(org.bouncycastle.asn1.ASN1ObjectIdentifier type,
                             org.bouncycastle.asn1.ASN1Encodable value)
Method Detail

getInstance

public static AttributeTypeAndValue getInstance(java.lang.Object o)

getType

public org.bouncycastle.asn1.ASN1ObjectIdentifier getType()

getValue

public org.bouncycastle.asn1.ASN1Encodable getValue()

toASN1Primitive

public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
AttributeTypeAndValue ::= SEQUENCE { type OBJECT IDENTIFIER, value ANY DEFINED BY type }

Returns:
a basic ASN.1 object representation.

Bouncy Castle Cryptography Library 1.77.00