|
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.AttributeSet
An attribute set, as defined in X.501
and used in various PKCS and PKIX protocols, is a (possibly empty) set of attributes. Each attribute type may occur only once in the attribute set.
Attributes ::= SET OF Attribute
Attribute
Constructor Summary | |
AttributeSet() Creates a new, empty attribute set. |
|
AttributeSet(java.io.InputStream is) |
Method Summary | |
Attribute |
addAttribute(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value) Defines a single-valued attribute. |
Attribute |
addAttribute(oracle.security.crypto.asn1.ASN1ObjectID type, java.util.Vector values) Defines a possibly multiple-valued attribute. |
Attribute |
addAttribute(Attribute attr) Adds an Attribute to this AttributeSet . |
void |
addAttributeValue(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value) Adds the given value to the value set of the attribute with the specified type OID; if no such attribute is defined, a new one is created which will have the single value. |
java.lang.Object |
clone() |
Attribute |
getAttribute(oracle.security.crypto.asn1.ASN1ObjectID type) Returns the attribute with the given OID. |
java.util.Vector |
getAttributeValues(oracle.security.crypto.asn1.ASN1ObjectID type) Returns the values(s) of the attribute specified by the given OID. |
boolean |
hasAttribute(oracle.security.crypto.asn1.ASN1ObjectID type) Returns true if this AttributeSet has an Attribute with the specified type, otherwise returns false. |
void |
input(java.io.InputStream is) Defines this attribute set by reading its encoding from the given input stream. |
boolean |
isEmpty() Returns true if and only if this attribute set is empty. |
int |
length() |
void |
output(java.io.OutputStream os) |
int |
size() Returns the number of attribute types defined in this set. |
oracle.security.crypto.asn1.ASN1Set |
toASN1Set() |
java.lang.String |
toString() |
java.util.Enumeration |
types() Returns an enumeration consisting of all the type OIDs defined in this attribute set. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AttributeSet()
public AttributeSet(java.io.InputStream is) throws java.io.IOException
Method Detail |
public Attribute addAttribute(Attribute attr)
Attribute
to this AttributeSet
.attr
- the Attribute
to add.null
if none was defined.public Attribute addAttribute(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value)
public Attribute addAttribute(oracle.security.crypto.asn1.ASN1ObjectID type, java.util.Vector values)
ASN1Object
.public Attribute getAttribute(oracle.security.crypto.asn1.ASN1ObjectID type)
type
- the OID for the attribute to be retrieved.null
if none is defined.public void addAttributeValue(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value)
public java.util.Vector getAttributeValues(oracle.security.crypto.asn1.ASN1ObjectID type)
type
- the OID for the attribute.Vector
of values for the attribute for the given type, or null
if the attribute is not defined.public int size()
public boolean isEmpty()
true
if and only if this attribute set is empty.public boolean hasAttribute(oracle.security.crypto.asn1.ASN1ObjectID type)
true
if this AttributeSet
has an Attribute
with the specified type, otherwise returns false.public java.util.Enumeration types()
The elements of the returned enumeration will all have type ASN1ObjectID
.
public java.lang.Object clone()
public java.lang.String toString()
public void input(java.io.InputStream is) throws java.io.IOException
input
in interface oracle.security.crypto.util.Streamable
is
- the input streamjava.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
public oracle.security.crypto.asn1.ASN1Set toASN1Set()
|
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 |