|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.cert.crmf.EncryptedValueParser
Parser for EncryptedValue structures.
Constructor Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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..Method Detail |
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.
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |