Oracle Security Developer Tools Security Engine Java API Reference
10g Release 2 (10.1.2.0.2)

B15569-01


oracle.security.crypto.cert
Class AttributeTypeAndValue

java.lang.Object
  extended byoracle.security.crypto.cert.AttributeTypeAndValue


public class AttributeTypeAndValue
extends java.lang.Object

An attribute type OID and a value defined by the OID, used in PKIX and PKCS protocols. Similar to Attribute, but an AttributeTypeAndValue must have only a single value.

The ASN.1 syntax is:

        AttributeTypeAndValue ::= SEQUENCE {
                type AttributeType OBJECT IDENTIFIER,
                value AttributeValue ANY DEFINED BY type
        }
        

Constructor Summary
AttributeTypeAndValue()
Creates a new, empty attribute type and value.
AttributeTypeAndValue(ASN1ObjectID type, ASN1Object value)
AttributeTypeAndValue(java.io.InputStream is)

Method Summary
ASN1ObjectID getType()
Returns the type.
ASN1Object getValue()
Returns the value.
void input(java.io.InputStream is)
Defines this attribute type-value pair by reading its encoding from the given input stream.
int length()
void output(java.io.OutputStream os)
void setValue(ASN1Object value)
Sets the value.

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

AttributeTypeAndValue

public AttributeTypeAndValue()
Creates a new, empty attribute type and value.

AttributeTypeAndValue

public AttributeTypeAndValue(ASN1ObjectID type,
                             ASN1Object value)

AttributeTypeAndValue

public AttributeTypeAndValue(java.io.InputStream is)
                      throws java.io.IOException

Method Detail

getType

public ASN1ObjectID getType()
Returns the type.
Returns:
the attribute type

getValue

public ASN1Object getValue()
Returns the value.
Returns:
the attribute value

setValue

public void setValue(ASN1Object value)
Sets the value.

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Defines this attribute type-value pair by reading its encoding from the given input stream.
Parameters:
is - the input stream
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Throws:
java.io.IOException

length

public int length()

Oracle Security Developer Tools Security Engine Java API Reference
10g Release 2 (10.1.2.0.2)

B15569-01


Copyright © 2005 , Oracle. All rights reserved.