org.mozilla.jss.pkix.crmf
Class PKIArchiveOptions
java.lang.Object
org.mozilla.jss.pkix.crmf.PKIArchiveOptions
- ASN1Value
public class PKIArchiveOptions
extends java.lang.Object
PKIArchiveOptions
public PKIArchiveOptions(boolean archiveRemGenPrivKey)
PKIArchiveOptions
public PKIArchiveOptions(byte[] keyGenParameters)
PKIArchiveOptions
public PKIArchiveOptions(EncryptedKey eKey)
encode
public void encode(OutputStream ostream)
throws IOException
DER-encodes a PKIArchiveOptions.
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
DER-encodes a PKIArchiveOptions.
- encode in interface ASN1Value
implicitTag
- This parameter is ignored. A CHOICE cannot
have an implicit tag.
getArchiveRemGenPrivKey
public boolean getArchiveRemGenPrivKey()
Returns the key gen parameters. Should only be called if the type
is 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
.
getEncryptedKey
public EncryptedKey getEncryptedKey()
Returns the encrypted key. Should only be called if the type
is ENCRYPTED_PRIV_KEY
.