| 
 | 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.AttributeSet
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(ASN1ObjectID type, ASN1Object value)Defines a single-valued attribute. | 
| Attribute | addAttribute(Attribute attr)Adds an Attributeto thisAttributeSet. | 
| void | addAttributeValue(ASN1ObjectID type, 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(ASN1ObjectID type)Returns the attribute with the given OID. | 
| java.util.Vector | getAttributeValues(ASN1ObjectID type)Returns the values(s) of the attribute specified by the given OID. | 
| boolean | hasAttribute(ASN1ObjectID type)Returns trueif thisAttributeSethas anAttributewith 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 trueif 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. | 
| 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(ASN1ObjectID type,
                              ASN1Object value)
public Attribute getAttribute(ASN1ObjectID type)
type - the OID for the attribute to be retrieved.null if none is defined.
public void addAttributeValue(ASN1ObjectID type,
                              ASN1Object value)
public java.util.Vector getAttributeValues(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(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
is - the input streamjava.io.IOException
public void output(java.io.OutputStream os)
            throws java.io.IOException
java.io.IOExceptionpublic int length()
public ASN1Set toASN1Set()
| 
 | 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 | |||||||||