public class PEMReader extends PEM
DSA_PRIVATE_KEY, HEX_CHARS, MAX_LINE_LENGTH, PEM_BEGIN, PEM_BOUNDARY, PEM_END, RSA_PRIVATE_KEY
Constructor and Description |
---|
PEMReader(java.io.Reader r)
Creates a new PEMReader object.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decryptPayload(java.lang.String passphrase) |
java.util.Map |
getHeader() |
byte[] |
getPayload() |
java.lang.String |
getType() |
getKeyFromPassphrase
public PEMReader(java.io.Reader r) throws java.io.IOException
r
- java.io.IOException
public java.util.Map getHeader()
public byte[] getPayload()
public java.lang.String getType()
public byte[] decryptPayload(java.lang.String passphrase) throws java.security.GeneralSecurityException
passphrase
- java.security.GeneralSecurityException
java.security.NoSuchAlgorithmException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.