public class EncryptedValueParser
extends java.lang.Object
Constructor | Description |
---|---|
EncryptedValueParser(org.bouncycastle.asn1.crmf.EncryptedValue value) |
Basic constructor - create a parser to read the passed in value.
|
EncryptedValueParser(org.bouncycastle.asn1.crmf.EncryptedValue value,
EncryptedValuePadder padder) |
Create a parser to read the passed in value, assuming the padder was
applied to the data prior to encryption.
|
Modifier and Type | Method | Description |
---|---|---|
X509CertificateHolder |
readCertificateHolder(ValueDecryptorGenerator decGen) |
Read a X.509 certificate.
|
char[] |
readPassphrase(ValueDecryptorGenerator decGen) |
Read a pass phrase.
|
public EncryptedValueParser(org.bouncycastle.asn1.crmf.EncryptedValue value)
value
- the value to be parsed.public EncryptedValueParser(org.bouncycastle.asn1.crmf.EncryptedValue value, EncryptedValuePadder padder)
value
- the value to be parsed.padder
- the padder to be used to remove padding from the decrypted value..public X509CertificateHolder readCertificateHolder(ValueDecryptorGenerator decGen) throws CRMFException
decGen
- the decryptor generator to decrypt the encrypted value.CRMFException
- if the decrypted data cannot be parsed, or a decryptor cannot be generated.public char[] readPassphrase(ValueDecryptorGenerator decGen) throws CRMFException
decGen
- the decryptor generator to decrypt the encrypted value.CRMFException
- if the decrypted data cannot be parsed, or a decryptor cannot be generated.