|
Oracle Security Developer Tools Security Engine Java API Reference 10g Release 2 (10.1.2.0.2) B15569-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(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 |
public Attribute(ASN1ObjectID type)
Attribute
of the specified type, with no values.type
- OID specifiying the type of the attribute.public Attribute(ASN1ObjectID type, 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.Method Detail |
public ASN1ObjectID getType()
public void addValue(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
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public int length()
|
Oracle Security Developer Tools Security Engine Java API Reference 10g Release 2 (10.1.2.0.2) B15569-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |