public class

EncryptedValueParser

extends Object
java.lang.Object
   ↳ org.bouncycastle.cert.crmf.EncryptedValueParser

Class Overview

Parser for EncryptedValue structures.

Summary

Public Constructors
EncryptedValueParser(EncryptedValue value)
Basic constructor - create a parser to read the passed in value.
EncryptedValueParser(EncryptedValue value, EncryptedValuePadder padder)
Create a parser to read the passed in value, assuming the padder was applied to the data prior to encryption.
Public Methods
X509CertificateHolder readCertificateHolder(ValueDecryptorGenerator decGen)
Read a X.509 certificate.
char[] readPassphrase(ValueDecryptorGenerator decGen)
Read a pass phrase.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EncryptedValueParser (EncryptedValue value)

Basic constructor - create a parser to read the passed in value.

Parameters
value the value to be parsed.

public EncryptedValueParser (EncryptedValue value, EncryptedValuePadder padder)

Create a parser to read the passed in value, assuming the padder was applied to the data prior to encryption.

Parameters
value the value to be parsed.
padder the padder to be used to remove padding from the decrypted value..

Public Methods

public X509CertificateHolder readCertificateHolder (ValueDecryptorGenerator decGen)

Read a X.509 certificate.

Parameters
decGen the decryptor generator to decrypt the encrypted value.
Returns
  • an X509CertificateHolder containing the certificate read.
Throws
CRMFException if the decrypted data cannot be parsed, or a decryptor cannot be generated.

public char[] readPassphrase (ValueDecryptorGenerator decGen)

Read a pass phrase.

Parameters
decGen the decryptor generator to decrypt the encrypted value.
Returns
  • a pass phrase as recovered from the encrypted value.
Throws
CRMFException if the decrypted data cannot be parsed, or a decryptor cannot be generated.