Example usage for org.bouncycastle.asn1.pkcs EncryptedPrivateKeyInfo getEncoded

List of usage examples for org.bouncycastle.asn1.pkcs EncryptedPrivateKeyInfo getEncoded

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.pkcs EncryptedPrivateKeyInfo getEncoded.

Prototype

public byte[] getEncoded() throws IOException 

Source Link

Document

Return the default BER or DER encoding for this object.

Usage

From source file:org.xwiki.crypto.password.internal.DefaultPrivateKeyPasswordBasedEncryptor.java

License:Open Source License

@Override
public PrivateKeyParameters decrypt(byte[] password, javax.crypto.EncryptedPrivateKeyInfo privateKeyInfo)
        throws GeneralSecurityException, IOException {
    return decrypt(password, privateKeyInfo.getEncoded());
}