|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.jss.pkix.crmf.PKIArchiveOptions
public class PKIArchiveOptions
Nested Class Summary | |
---|---|
static class |
PKIArchiveOptions.Template
A template for decoding PKIArchiveOptions. |
static class |
PKIArchiveOptions.Type
A type of PKIArchiveOption. |
Field Summary | |
---|---|
static PKIArchiveOptions.Type |
ARCHIVE_REM_GEN_PRIV_KEY
|
static PKIArchiveOptions.Type |
ENCRYPTED_PRIV_KEY
|
static PKIArchiveOptions.Type |
KEY_GEN_PARAMETERS
|
Constructor Summary | |
---|---|
PKIArchiveOptions(boolean archiveRemGenPrivKey)
|
|
PKIArchiveOptions(byte[] keyGenParameters)
|
|
PKIArchiveOptions(EncryptedKey eKey)
|
Method Summary | |
---|---|
void |
encode(java.io.OutputStream ostream)
DER-encodes a PKIArchiveOptions. |
void |
encode(Tag implicitTag,
java.io.OutputStream ostream)
DER-encodes a PKIArchiveOptions. |
boolean |
getArchiveRemGenPrivKey()
Returns the key gen parameters. |
EncryptedKey |
getEncryptedKey()
Returns the encrypted key. |
Tag |
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. |
static PKIArchiveOptions.Template |
getTemplate()
|
PKIArchiveOptions.Type |
getType()
Returns the type of PKIArchiveOptions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PKIArchiveOptions.Type ENCRYPTED_PRIV_KEY
public static final PKIArchiveOptions.Type KEY_GEN_PARAMETERS
public static final PKIArchiveOptions.Type ARCHIVE_REM_GEN_PRIV_KEY
Constructor Detail |
---|
public PKIArchiveOptions(EncryptedKey eKey)
public PKIArchiveOptions(byte[] keyGenParameters)
public PKIArchiveOptions(boolean archiveRemGenPrivKey)
Method Detail |
---|
public PKIArchiveOptions.Type getType()
public EncryptedKey getEncryptedKey()
ENCRYPTED_PRIV_KEY
.
public boolean getArchiveRemGenPrivKey()
KEY_GEN_PARAMETERS
.
public byte[] getKeyGenParameters( ) {
Assert._assert(type == KEY_GEN_PARAMETERS);
return keyGenParameters;
}
/**
Returns the archiveRemGenPrivKey field, which indicates that
the sender wishes the receiver to generate and archive a key pair.
Should only be called if the type is
ARCHIVE_REM_GEN_PRIV_KEY
.
public Tag getTag()
ASN1Value
getTag
in interface ASN1Value
public void encode(java.io.OutputStream ostream) throws java.io.IOException
encode
in interface ASN1Value
java.io.IOException
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
encode
in interface ASN1Value
implicitTag
- This parameter is ignored. A CHOICE cannot
have an implicit tag.
java.io.IOException
public static PKIArchiveOptions.Template getTemplate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |