|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.novell.security.japi.pki.NPKI_ExtAltNames
The x.509 subject alternative name extension is used to specify additional identities to be bound to the subject of the certificate (i.e., other names that identify the object).
| Field Summary | |
protected java.util.Vector |
m_altName
|
protected int |
m_flags
|
| Constructor Summary | |
NPKI_ExtAltNames(int flags)
Constructor for the X.509 subject alternative name extension. |
|
| Method Summary | |
void |
addAltName(com.novell.security.japi.pki.NPKI_AltName altName)
Adds the specified issuer alternative name. |
com.novell.security.japi.pki.NPKI_AltName |
getAltName(int altNameNumber)
Gets alternative name at the specified index. |
int |
getFlags()
Gets flags that denotes how the extension will be encoded in the certificate. |
int |
getNumberOfNames()
Gets number of alternative names in the list. |
boolean |
removeAltName(com.novell.security.japi.pki.NPKI_AltName altName)
Removes alternative name. |
void |
removeAltNameAt(int altNameNumber)
Removes the alternative name at the specified index. |
void |
setFlags(int flags)
Set flags to specify whether or not this extension should be included in the certificate. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int m_flags
protected java.util.Vector m_altName
| Constructor Detail |
public NPKI_ExtAltNames(int flags)
throws java.io.IOException
flags - Specifies whether or not to include this extension.
java.io.IOException - if an I/O error occurs.| Method Detail |
public void setFlags(int flags)
For a description of the general-purpose flags, see the General-purpose extension flags section. NOTE: There are no subject alternative name extension specific flags defined in this release.
flags - Denotes how the extension will be encoded in the certificate and is
composed of both general purpose flags combined with any extension specific flags if necessary.public void addAltName(com.novell.security.japi.pki.NPKI_AltName altName)
altName - An object representing an alternative
name.
public com.novell.security.japi.pki.NPKI_AltName getAltName(int altNameNumber)
throws java.lang.ArrayIndexOutOfBoundsException
altNameNumber - The index of the alternate name to be retrieved.
java.lang.ArrayIndexOutOfBoundsException - if the index was invalid.public boolean removeAltName(com.novell.security.japi.pki.NPKI_AltName altName)
altName - The alternative name that is to be removed from the list.
public void removeAltNameAt(int altNameNumber)
throws java.lang.ArrayIndexOutOfBoundsException
altNameNumber - Index of the alternative name to be removed.
java.lang.ArrayIndexOutOfBoundsException - if the index was invalidpublic int getFlags()
public int getNumberOfNames()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||