public class EncryptedValueParser
extends java.lang.Object
Constructor and 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 and Description |
---|---|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getIntendedAlg() |
X509CertificateHolder |
readCertificateHolder(ValueDecryptorGenerator decGen)
Read a X.509 certificate.
|
char[] |
readPassphrase(ValueDecryptorGenerator decGen)
Read a pass phrase.
|
org.bouncycastle.asn1.pkcs.PrivateKeyInfo |
readPrivateKeyInfo(ValueDecryptorGenerator decGen)
Read a PKCS#8 PrivateKeyInfo.
|
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 org.bouncycastle.asn1.x509.AlgorithmIdentifier getIntendedAlg()
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 org.bouncycastle.asn1.pkcs.PrivateKeyInfo readPrivateKeyInfo(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.