|
|||||||||
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_Extension
Specifies any generic ASN.1 encoded extensions to add during the creation of server and user certificates.
NOTE: Each extension must be a fully ASN.1 encoded extension conforming to RFC 2459.
Field Summary | |
protected int |
m_flags
|
protected int |
m_length
|
protected byte[] |
m_value
|
Constructor Summary | |
NPKI_Extension(int flags)
Default constructor used to denote 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. |
|
NPKI_Extension(int flags,
byte[] value)
Constructor, sets flags and structures for certificate extensions. |
|
NPKI_Extension(int flags,
int value)
Constructor used to sets flags and structures for certificate extensions. |
|
NPKI_Extension(int flags,
long value)
Constructor, sets flags and structures for certificate extensions. |
|
NPKI_Extension(int flags,
short value)
Constructor, sets flags and structures for certificate extensions. |
|
NPKI_Extension(int flags,
java.lang.String value)
Constructor, sets flags and structures for certificate extensions. |
Method Summary | |
byte[] |
getByteArray()
Gets the certificate extension. |
int |
getFlags()
Gets flags used to define certificate extensions. |
int |
getLength()
Gets the length of the extension. |
void |
setFlags(int flags)
Sets extension flags. |
void |
setValue(byte[] value)
Sets the extension. |
void |
setValue(int value)
Sets the extension. |
void |
setValue(long value)
Sets the extension. |
void |
setValue(short value)
Sets the extension. |
void |
setValue(java.lang.String value)
Sets the extension. |
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 int m_length
protected byte[] m_value
Constructor Detail |
public NPKI_Extension(int flags)
flags
- Sets extenstion flags.public NPKI_Extension(int flags, short value) throws java.io.IOException
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.value
- A two byte extension.
java.io.IOException
- if an I/O error occurs.public NPKI_Extension(int flags, int value) throws java.io.IOException
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.value
- A four byte extension.
java.io.IOException
- if an I/O error occurs.public NPKI_Extension(int flags, long value) throws java.io.IOException
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.value
- An eight byte extension.
java.io.IOException
- if an I/O error occurs.public NPKI_Extension(int flags, java.lang.String value) throws java.io.IOException
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.value
- A multi-byte extension in string format.
java.io.IOException
- if an I/O error occurs.public NPKI_Extension(int flags, byte[] value) throws java.io.IOException
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.value
- A multi-byte extension.
java.io.IOException
- if an I/O error occurs.Method Detail |
public void setFlags(int flags)
flags
- Extension flags for the current extensionpublic void setValue(short value) throws java.io.IOException
value
- A two byte extension
java.io.IOException
- if an I/O error occurs.public void setValue(int value) throws java.io.IOException
value
- A four byte extension
java.io.IOException
- if an I/O error occurs.public void setValue(long value) throws java.io.IOException
value
- An eight byte extension
java.io.IOException
- if an I/O error occurs.public void setValue(java.lang.String value) throws java.io.IOException
value
- A multi-byte extension in String format
java.io.IOException
- if an I/O error occurs.public void setValue(byte[] value) throws java.io.IOException
value
- A multi-byte extension
java.io.IOException
- if an I/O error occurs.public int getFlags()
public int getLength()
public byte[] getByteArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |