org.gudy.bouncycastle.asn1.x509
Class IetfAttrSyntax

java.lang.Object
  extended by org.gudy.bouncycastle.asn1.ASN1Encodable
      extended by org.gudy.bouncycastle.asn1.x509.IetfAttrSyntax
All Implemented Interfaces:
DEREncodable

public class IetfAttrSyntax
extends ASN1Encodable

Implementation of IetfAttrSyntax as specified by RFC3281.


Field Summary
static int VALUE_OCTETS
           
static int VALUE_OID
           
static int VALUE_UTF8
           
 
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
IetfAttrSyntax(ASN1Sequence seq)
           
 
Method Summary
 GeneralNames getPolicyAuthority()
           
 Object[] getValues()
           
 int getValueType()
           
 DERObject toASN1Object()
           IetfAttrSyntax ::= SEQUENCE { policyAuthority [0] GeneralNames OPTIONAL, values SEQUENCE OF CHOICE { octets OCTET STRING, oid OBJECT IDENTIFIER, string UTF8String } }
 
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_OCTETS

public static final int VALUE_OCTETS
See Also:
Constant Field Values

VALUE_OID

public static final int VALUE_OID
See Also:
Constant Field Values

VALUE_UTF8

public static final int VALUE_UTF8
See Also:
Constant Field Values
Constructor Detail

IetfAttrSyntax

public IetfAttrSyntax(ASN1Sequence seq)
Method Detail

getPolicyAuthority

public GeneralNames getPolicyAuthority()

getValueType

public int getValueType()

getValues

public Object[] getValues()

toASN1Object

public DERObject toASN1Object()
 
  IetfAttrSyntax ::= SEQUENCE {
    policyAuthority [0] GeneralNames OPTIONAL,
    values SEQUENCE OF CHOICE {
      octets OCTET STRING,
      oid OBJECT IDENTIFIER,
      string UTF8String
    }
  }
  
 

Specified by:
toASN1Object in class ASN1Encodable