public class PemOptions
extends java.lang.Object
| Constructor and Description |
|---|
PemOptions()
Constructor for PemOptions.
|
PemOptions(PemOptions src)
Copy Constructor for PemOptions.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
getEncryptionAlgorithm()
Returns the encryption algorithm.
|
int |
getKeyLength()
Returns the encryption key length
|
boolean |
isBase64Encoded()
Returns the Base64-encoded flag.
|
boolean |
isCompressed()
Returns the compressed flag.
|
boolean |
isEncrypted()
Returns the encrypted flag.
|
boolean |
isSigned()
Returns the signed flag.
|
void |
setBase64Encoded(boolean isBase64Encoded)
Sets the Base64 encoded flag
|
void |
setCompressed(boolean isCompressed)
Sets the compressed flag.
|
void |
setEncrypted(boolean isEncrypted)
Sets the encrypted flag.
|
void |
setEncryptionAlgorithm(AlgorithmID encryptionAlgorithm,
int keyLength)
Sets the encryption algorithm.
|
void |
setSigned(boolean isSigned)
Sets the signed flag.
|
public PemOptions()
public PemOptions(PemOptions src)
src - the options to copypublic boolean isBase64Encoded()
public boolean isCompressed()
public boolean isEncrypted()
public boolean isSigned()
public AlgorithmID getEncryptionAlgorithm()
public int getKeyLength()
public void setBase64Encoded(boolean isBase64Encoded)
isBase64Encoded - the value of the Base64 encoded flagpublic void setCompressed(boolean isCompressed)
isCompressed - the value of the compressed flagpublic void setEncrypted(boolean isEncrypted)
isEncrypted - the value of the encrypted flagpublic void setSigned(boolean isSigned)
isSigned - the value of the signed flagpublic void setEncryptionAlgorithm(AlgorithmID encryptionAlgorithm, int keyLength) throws ArchiveAlgorithmException
encryptionAlgorithm - The encryption algorithm to set.keyLength - The length of the key.ArchiveAlgorithmException - if the encryption algorithm
is not valid, or the key length is not valid for the given algorithmAlgorithmID