Top Fields Constructors Methods
org.bouncycastle.asn1.crmf

public Class AttributeTypeAndValue

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Sequence, .DERSequence

Field Summary

Modifier and TypeField and Description
private ASN1ObjectIdentifier
private ASN1Encodable

Constructor Summary

AccessConstructor and Description
private
public
public

Method Summary

Modifier and TypeMethod and Description
public static AttributeTypeAndValue
public ASN1ObjectIdentifier
public ASN1Encodable
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

AttributeTypeAndValue ::= SEQUENCE {
          type         OBJECT IDENTIFIER,
          value        ANY DEFINED BY type }
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

typeback to summary
private ASN1ObjectIdentifier type
valueback to summary
private ASN1Encodable value

Constructor Detail

AttributeTypeAndValueback to summary
private AttributeTypeAndValue(ASN1Sequence seq)
AttributeTypeAndValueback to summary
public AttributeTypeAndValue(String oid, ASN1Encodable value)
AttributeTypeAndValueback to summary
public AttributeTypeAndValue(ASN1ObjectIdentifier type, ASN1Encodable value)

Method Detail

getInstanceback to summary
public static AttributeTypeAndValue getInstance(Object o)
getTypeback to summary
public ASN1ObjectIdentifier getType()
getValueback to summary
public ASN1Encodable getValue()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

AttributeTypeAndValue ::= SEQUENCE {
          type         OBJECT IDENTIFIER,
          value        ANY DEFINED BY type }
Returns:ASN1Primitive

a basic ASN.1 object representation.