|
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.GeneralNames
public class GeneralNames
'GeneralNames' is a SEQUENCE of the GeneralName type defined in RFC 2459.
Constructor Summary | |
---|---|
GeneralNames() Create an empty GeneralNames . |
|
GeneralNames(GeneralName generalName) Create a GeneralNames . |
|
GeneralNames(java.io.InputStream is) Create a GeneralNames . |
|
GeneralNames(java.util.List<GeneralName> generalNames) Create a GeneralNames . |
|
GeneralNames(java.lang.String rfc822Name) Create a GeneralNames . |
|
GeneralNames(java.util.Vector<GeneralName> generalNames) Deprecated. Use GeneralNames(List) |
|
GeneralNames(X500Name directoryName) Create a GeneralNames . |
|
GeneralNames(X500Name directoryName, java.lang.String rfc822Name) Create a GeneralNames . |
Method Summary | |
---|---|
void |
addGeneralName(GeneralName generalName) Add a GeneralName . |
void |
addGeneralName(java.lang.String rfc822Name) Add a GeneralName . |
void |
addGeneralName(X500Name directoryName) Add a GeneralName . |
void |
addGeneralNames(java.util.List<GeneralName> generalNames) Add a list of GeneralName s. |
void |
addGeneralNames(java.util.Vector<GeneralName> generalNames) Deprecated. Use addGeneralNames(List) |
boolean |
containsGeneralName(GeneralName gn) Indicate if the GeneralName is present in this object. |
GeneralName |
generalNameAt(int index) Returns the GeneralName at the given index. |
java.util.Enumeration<GeneralName> |
generalNames() Deprecated. Use getGeneralNamesAsList() |
java.util.Vector<GeneralName> |
getGeneralNames() Deprecated. |
java.util.ArrayList<GeneralName> |
getGeneralNamesAsList() Returns the list of GeneralName objects. |
java.util.Vector<java.lang.String> |
getRFC822Names() Deprecated. |
java.util.ArrayList<java.lang.String> |
getRFC822NamesAsList() Returns the list of RFC-822 email addresses in this object. |
void |
input(java.io.InputStream is) Initialize this object reading from the specified input stream. |
int |
length() Returns the length of this object's output emcoding. |
void |
output(java.io.OutputStream os) Outputs this object's encoding to the specified output stream. |
void |
readExternal(java.io.ObjectInput is) |
boolean |
removeGeneralName(GeneralName generalName) Remove a GeneralName . |
GeneralName |
removeGeneralName(int index) Remove the GeneralName at the given index, returning the old value. |
boolean |
removeGeneralName(java.lang.String rfc822Name) Remove a GeneralName . |
boolean |
removeGeneralName(X500Name directoryName) Remove a GeneralName . |
boolean |
removeGeneralNames(java.util.List<GeneralName> generalNames) Remove a list of GeneralName s. |
boolean |
removeGeneralNames(java.util.Vector<GeneralName> generalNames) Deprecated. Use removeGeneralNames(List) |
int |
size() Returns the number of GeneralName s in the list. |
java.lang.String |
toString() Returns information about this object. |
void |
writeExternal(java.io.ObjectOutput os) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeneralNames()
GeneralNames
.public GeneralNames(java.util.Vector<GeneralName> generalNames)
GeneralNames(List)
GeneralNames
.
generalNames
- A Vector
containing GeneralName
objects.public GeneralNames(java.util.List<GeneralName> generalNames)
GeneralNames
.
generalNames
- A List
containing GeneralName
objects.public GeneralNames(GeneralName generalName)
GeneralNames
.
generalName
- A GeneralName
.public GeneralNames(X500Name directoryName)
GeneralNames
.
directoryName
- A X500 directory name.public GeneralNames(java.lang.String rfc822Name)
GeneralNames
.
rfc822Name
- A RFC-822 email address.public GeneralNames(X500Name directoryName, java.lang.String rfc822Name)
GeneralNames
.
directoryName
- A X500 directory name.rfc822Name
- A RFC-822 email address.public GeneralNames(java.io.InputStream is) throws java.io.IOException
GeneralNames
.
is
- The input stream.java.io.IOException
- The input encoding is incorrect or an I/O error occurs.Method Detail |
---|
public void addGeneralName(X500Name directoryName)
GeneralName
.directoryName
- A X500 directory name.public void addGeneralName(java.lang.String rfc822Name)
GeneralName
.rfc822Name
- A RFC-822 email address.public void addGeneralName(GeneralName generalName)
GeneralName
.generalName
- A GeneralName
object.public void addGeneralNames(java.util.Vector<GeneralName> generalNames)
addGeneralNames(List)
GeneralName
s.generalNames
- A Vector
containing GeneralName
objects.public void addGeneralNames(java.util.List<GeneralName> generalNames)
GeneralName
s.generalNames
- A Vector
containing GeneralName
objects.public boolean removeGeneralName(X500Name directoryName)
GeneralName
.directoryName
- A X500 directory name.public boolean removeGeneralName(java.lang.String rfc822Name)
GeneralName
.rfc822Name
- A RFC-822 email address.public boolean removeGeneralName(GeneralName generalName)
GeneralName
.generalName
- A GeneralName
object.public GeneralName removeGeneralName(int index)
GeneralName
at the given index, returning the old value.index
- The index of the GeneralName
to remove. index
must be greater than or equal to 0
and less than the size of the list.GeneralName
that was removed from the given index.java.lang.IndexOutOfBoundsException
- If the given index is invalid.public boolean removeGeneralNames(java.util.Vector<GeneralName> generalNames)
removeGeneralNames(List)
GeneralName
s.generalNames
- A Vector
containing GeneralName
objects.public boolean removeGeneralNames(java.util.List<GeneralName> generalNames)
GeneralName
s.generalNames
- A Liat
containing GeneralName
objects.public GeneralName generalNameAt(int index)
GeneralName
at the given index.index
- The index of the GeneralName
to be retrieved. index
must be greater than or equal to 0
and less than the size of the list.GeneralName
at the given index.java.lang.IndexOutOfBoundsException
- If the given index is invalid.public int size()
GeneralName
s in the list.public boolean containsGeneralName(GeneralName gn)
GeneralName
is present in this object.true
if present; false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated
public java.util.Vector<GeneralName> getGeneralNames()
GeneralName
objects.Vector
containing GeneralName
objects.public java.util.ArrayList<GeneralName> getGeneralNamesAsList()
GeneralName
objects.ArrayList
containing GeneralName
objects.public java.util.Enumeration<GeneralName> generalNames()
getGeneralNamesAsList()
GeneralName
objects. An enumeration of GeneralName
objects.public java.util.ArrayList<java.lang.String> getRFC822NamesAsList()
Vector
containing email address strings.
@Deprecated
public java.util.Vector<java.lang.String> getRFC822Names()
Vector
containing email address strings.public void input(java.io.InputStream is) throws java.io.IOException
input
in interface oracle.security.crypto.util.Streamable
is
- The input stream.java.io.IOException
- An I/O error occurred or the input encoding is incorrect.public void output(java.io.OutputStream os) throws java.io.IOException
output
in interface oracle.security.crypto.util.Streamable
os
- The output stream.java.io.IOException
- An I/O error occurs.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 |