List of usage examples for org.bouncycastle.asn1.pkcs EncryptedPrivateKeyInfo getEncoded
public byte[] getEncoded() throws IOException
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()); }