|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cert.AttributeTypeAndValueList
public class AttributeTypeAndValueList
A an ordered list of AttributeTypeAndValue
pairs.
Only one AttributeTypeAndValue
element with a given OID type may be present. Adding a second element with that OID results in the expulsion of the first such element.
Constructor Summary | |
---|---|
AttributeTypeAndValueList() Creates a new, empty attribute list. |
|
AttributeTypeAndValueList(java.io.InputStream is) |
Method Summary | |
---|---|
AttributeTypeAndValue |
addAttribute(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value) Defines a new attribute type and value pair. |
AttributeTypeAndValue |
addAttribute(AttributeTypeAndValue attr) Adds an AttributeTypeAndValue to this AttributeTypeAndValueList , replacing any previously defined attribute for the given attribute's type. |
java.lang.Object |
clone() |
AttributeTypeAndValue |
elementAt(int n) |
java.util.Vector<AttributeTypeAndValue> |
elements() Deprecated. |
java.util.ArrayList<AttributeTypeAndValue> |
elementsAsList() |
java.util.Map<oracle.security.crypto.asn1.ASN1ObjectID,AttributeTypeAndValue> |
elementsAsMap() |
AttributeTypeAndValue |
getAttribute(oracle.security.crypto.asn1.ASN1ObjectID type) Returns the attribute with the given OID. |
oracle.security.crypto.asn1.ASN1Object |
getAttributeValue(oracle.security.crypto.asn1.ASN1ObjectID type) |
boolean |
hasAttribute(oracle.security.crypto.asn1.ASN1ObjectID type) Returns true if this has an AttributeTypeAndValue with the specified type, otherwise returns false. |
void |
input(java.io.InputStream is) |
boolean |
isEmpty() Returns true if and only if this attribute list is empty. |
int |
length() |
void |
output(java.io.OutputStream os) |
void |
readExternal(java.io.ObjectInput is) |
int |
size() |
java.lang.String |
toString() |
java.util.Enumeration<oracle.security.crypto.asn1.ASN1ObjectID> |
types() Deprecated. |
void |
writeExternal(java.io.ObjectOutput os) |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeTypeAndValueList()
public AttributeTypeAndValueList(java.io.InputStream is) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public AttributeTypeAndValue addAttribute(AttributeTypeAndValue attr)
AttributeTypeAndValue
to this AttributeTypeAndValueList
, replacing any previously defined attribute for the given attribute's type.attr
- the AttributeTypeAndValue
to add.null
if none was defined.public AttributeTypeAndValue addAttribute(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value)
public AttributeTypeAndValue getAttribute(oracle.security.crypto.asn1.ASN1ObjectID type)
type
- the OID for the attribute to be retrieved.null
if none is defined.public oracle.security.crypto.asn1.ASN1Object getAttributeValue(oracle.security.crypto.asn1.ASN1ObjectID type)
public boolean isEmpty()
true
if and only if this attribute list is empty.public boolean hasAttribute(oracle.security.crypto.asn1.ASN1ObjectID type)
true
if this has an AttributeTypeAndValue
with the specified type, otherwise returns false.
@Deprecated
public java.util.Enumeration<oracle.security.crypto.asn1.ASN1ObjectID> types()
The elements of the returned enumeration will all have type ASN1ObjectID
.
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated
public java.util.Vector<AttributeTypeAndValue> elements()
public java.util.ArrayList<AttributeTypeAndValue> elementsAsList()
public java.util.Map<oracle.security.crypto.asn1.ASN1ObjectID,AttributeTypeAndValue> elementsAsMap()
public int size()
public AttributeTypeAndValue elementAt(int n)
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
public void writeExternal(java.io.ObjectOutput os) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput is) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |