Package org.mozilla.jss.pkix.crmf
Class PKIArchiveOptions
- java.lang.Object
-
- org.mozilla.jss.pkix.crmf.PKIArchiveOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPKIArchiveOptions.TemplateA template for decoding PKIArchiveOptions.static classPKIArchiveOptions.TypeA type of PKIArchiveOption.
-
Field Summary
Fields Modifier and Type Field Description static PKIArchiveOptions.TypeARCHIVE_REM_GEN_PRIV_KEYstatic PKIArchiveOptions.TypeENCRYPTED_PRIV_KEYstatic PKIArchiveOptions.TypeKEY_GEN_PARAMETERS
-
Constructor Summary
Constructors Constructor Description PKIArchiveOptions(boolean archiveRemGenPrivKey)PKIArchiveOptions(byte[] keyGenParameters)PKIArchiveOptions(EncryptedKey eKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream ostream)DER-encodes a PKIArchiveOptions.voidencode(Tag implicitTag, java.io.OutputStream ostream)DER-encodes a PKIArchiveOptions.booleangetArchiveRemGenPrivKey()Returns the key gen parameters.EncryptedKeygetEncryptedKey()Returns the encrypted key.TaggetTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static PKIArchiveOptions.TemplategetTemplate()PKIArchiveOptions.TypegetType()Returns the type of PKIArchiveOptions.
-
-
-
Field Detail
-
ENCRYPTED_PRIV_KEY
public static final PKIArchiveOptions.Type ENCRYPTED_PRIV_KEY
-
KEY_GEN_PARAMETERS
public static final PKIArchiveOptions.Type KEY_GEN_PARAMETERS
-
ARCHIVE_REM_GEN_PRIV_KEY
public static final PKIArchiveOptions.Type ARCHIVE_REM_GEN_PRIV_KEY
-
-
Constructor Detail
-
PKIArchiveOptions
public PKIArchiveOptions(EncryptedKey eKey)
-
PKIArchiveOptions
public PKIArchiveOptions(byte[] keyGenParameters)
-
PKIArchiveOptions
public PKIArchiveOptions(boolean archiveRemGenPrivKey)
-
-
Method Detail
-
getType
public PKIArchiveOptions.Type getType()
Returns the type of PKIArchiveOptions.
-
getEncryptedKey
public EncryptedKey getEncryptedKey()
Returns the encrypted key. Should only be called if the type isENCRYPTED_PRIV_KEY.
-
getArchiveRemGenPrivKey
public boolean getArchiveRemGenPrivKey()
Returns the key gen parameters. Should only be called if the type isKEY_GEN_PARAMETERS. public byte[] getKeyGenParameters( ) { 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 isARCHIVE_REM_GEN_PRIV_KEY.
-
getTag
public Tag getTag()
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context.
-
encode
public void encode(java.io.OutputStream ostream) throws java.io.IOExceptionDER-encodes a PKIArchiveOptions.
-
encode
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
DER-encodes a PKIArchiveOptions.
-
getTemplate
public static PKIArchiveOptions.Template getTemplate()
-
-