|
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.AttributeSet
public class 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
, Serialized FormConstructor 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.List<? extends oracle.security.crypto.asn1.ASN1Object> values) Defines a possibly multiple-valued attribute. |
Attribute |
addAttribute(oracle.security.crypto.asn1.ASN1ObjectID type, java.util.Vector<? extends oracle.security.crypto.asn1.ASN1Object> values) Deprecated. Use addAttribute(ASN1ObjectID, List) |
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.Map<oracle.security.crypto.asn1.ASN1ObjectID,Attribute> |
getAttributesAsMap() |
java.util.Vector<oracle.security.crypto.asn1.ASN1Object> |
getAttributeValues(oracle.security.crypto.asn1.ASN1ObjectID type) Deprecated. |
java.util.ArrayList<oracle.security.crypto.asn1.ASN1Object> |
getAttributeValuesAsList(oracle.security.crypto.asn1.ASN1ObjectID type) |
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) |
void |
readExternal(java.io.ObjectInput is) |
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<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 AttributeSet()
public AttributeSet(java.io.InputStream is) throws java.io.IOException
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<? extends oracle.security.crypto.asn1.ASN1Object> values)
addAttribute(ASN1ObjectID, List)
ASN1Object
.public Attribute addAttribute(oracle.security.crypto.asn1.ASN1ObjectID type, java.util.List<? extends oracle.security.crypto.asn1.ASN1Object> 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)
@Deprecated
public java.util.Vector<oracle.security.crypto.asn1.ASN1Object> 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 java.util.ArrayList<oracle.security.crypto.asn1.ASN1Object> getAttributeValuesAsList(oracle.security.crypto.asn1.ASN1ObjectID type)
public java.util.Map<oracle.security.crypto.asn1.ASN1ObjectID,Attribute> getAttributesAsMap()
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.
@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
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()
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 |