|
Oracle Security Developer Tools Security Engine Java API Reference 10g (10.1.4.0.1) B28175-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cert.Attribute
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
AttributeSet
, AttributeTypeAndValue
Constructor Summary | |
Attribute(oracle.security.crypto.asn1.ASN1ObjectID type) Creates a new Attribute of the specified type, with no values. |
|
Attribute(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value) Creates a new Attribute of the specified type, with the specified (single) value. |
|
Attribute(oracle.security.crypto.asn1.ASN1ObjectID type, java.util.Vector values) Creates a new Attribute of the specified type, with the specified values. |
|
Attribute(java.io.InputStream is) Creates a new Attribute from the given input stream. |
Method Summary | |
void |
addValue(oracle.security.crypto.asn1.ASN1Object value) |
oracle.security.crypto.asn1.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 |
public Attribute(oracle.security.crypto.asn1.ASN1ObjectID type)
Attribute
of the specified type, with no values.type
- OID specifiying the type of the attribute.public Attribute(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value)
Attribute
of the specified type, with the specified (single) value.type
- OID specifiying the type of the attribute.value
- a value of the attribute.public Attribute(oracle.security.crypto.asn1.ASN1ObjectID type, java.util.Vector values)
Attribute
of the specified type, with the specified values.type
- OID specifiying the type of the attribute.values
- a vector containing 1 or more ASN1Object
values for the attribute.public Attribute(java.io.InputStream is) throws java.io.IOException
Attribute
from the given input stream.is
- input stream containing the encoding of the attribute.Method Detail |
public oracle.security.crypto.asn1.ASN1ObjectID getType()
public void addValue(oracle.security.crypto.asn1.ASN1Object value)
public void setValues(java.util.Vector values)
public java.util.Enumeration values()
Attribute
.Enumeration
of the ASN1Object
values.public java.util.Vector getValues()
public int size()
Attribute
.public java.lang.String toString()
public void input(java.io.InputStream is) throws java.io.IOException
input
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
output
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public int length()
length
in interface oracle.security.crypto.util.Streamable
|
Oracle Security Developer Tools Security Engine Java API Reference 10g (10.1.4.0.1) B28175-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |