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

B15569-01


oracle.security.crypto.cert
Class Attribute

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


public class Attribute
extends java.lang.Object

An attribute, as defined in X.501 and used in various PKIX and PKCS protocols, consists of a type (OID) and a set of 1 or more values defined by the given type.

        Attribute ::= SEQUENCE {
                type    AttributeType,
                values  SET (1..MAX) OF AttributeValue
        }

        AttributeType ::= OBJECT IDENTIFIER

        AttributeValue ::= ANY DEFINED BY AttributeType
        
See Also:
AttributeSet, AttributeTypeAndValue

Constructor Summary
Attribute(ASN1ObjectID type)
Creates a new Attribute of the specified type, with no values.
Attribute(ASN1ObjectID type, ASN1Object value)
Creates a new Attribute of the specified type, with the specified (single) value.

Method Summary
void addValue(ASN1Object value)
ASN1ObjectID getType()
java.util.Vector getValues()
void input(java.io.InputStream is)
int length()
void output(java.io.OutputStream os)
void setValues(java.util.Vector values)
int size()
Returns the number of values defined for this Attribute.
java.lang.String toString()
java.util.Enumeration values()
Returns the set of values for this Attribute.

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

Constructor Detail

Attribute

public Attribute(ASN1ObjectID type)
Creates a new Attribute of the specified type, with no values.
Parameters:
type - OID specifiying the type of the attribute.

Attribute

public Attribute(ASN1ObjectID type,
                 ASN1Object value)
Creates a new Attribute of the specified type, with the specified (single) value.
Parameters:
type - OID specifiying the type of the attribute.
value - a value of the attribute.

Method Detail

getType

public ASN1ObjectID getType()

addValue

public void addValue(ASN1Object value)

setValues

public void setValues(java.util.Vector values)

values

public java.util.Enumeration values()
Returns the set of values for this Attribute.
Returns:
an Enumeration of the ASN1Object values.

getValues

public java.util.Vector getValues()

size

public int size()
Returns the number of values defined for this Attribute.

toString

public java.lang.String toString()

input

public void input(java.io.InputStream is)
           throws java.io.IOException
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.