org.mozilla.jss.pkix.crmf
public class PKIArchiveOptions extends Object implements ASN1Value
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(EncryptedKey eKey) | |
PKIArchiveOptions(byte[] keyGenParameters) | |
PKIArchiveOptions(boolean archiveRemGenPrivKey) |
Method Summary | |
---|---|
void | encode(OutputStream ostream)
DER-encodes a PKIArchiveOptions. |
void | encode(Tag implicitTag, OutputStream ostream)
DER-encodes a PKIArchiveOptions. |
boolean | getArchiveRemGenPrivKey()
Returns the key gen parameters. |
EncryptedKey | getEncryptedKey()
Returns the encrypted key. |
Tag | getTag() |
static PKIArchiveOptions.Template | getTemplate() |
PKIArchiveOptions.Type | getType()
Returns the type of PKIArchiveOptions. |
Parameters: implicitTag This parameter is ignored. A CHOICE cannot have an implicit tag.
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
.ENCRYPTED_PRIV_KEY
.