|
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.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.lang.String rfc822Name) Create a GeneralNames . |
|
GeneralNames(java.util.Vector generalNames) Create a GeneralNames . |
|
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.Vector generalNames) Add a list of GeneralName s. |
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 |
generalNames() Returns the list of GeneralName objects. |
java.util.Vector |
getGeneralNames() Returns the list of GeneralName objects. |
java.util.Vector |
getRFC822Names() 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. |
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.Vector generalNames) Remove a list of GeneralName s. |
int |
size() Returns the number of GeneralName s in the list. |
java.lang.String |
toString() Returns information about this object. |
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 generalNames)
GeneralNames
.generalNames
- A Vector
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 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 generalNames)
GeneralName
s.generalNames
- A Vector
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()
public java.util.Vector getGeneralNames()
GeneralName
objects.Vector
containing GeneralName
objects.public java.util.Enumeration generalNames()
GeneralName
objects. An enumeration of GeneralName
objects.public java.util.Vector getRFC822Names()
Vector
containing email address strings.public void input(java.io.InputStream is) throws java.io.IOException
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
os
- The output stream.java.io.IOException
- An I/O error occurs.public int length()
|
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 |