ice.cert
Class PKCS8PrivateKeyFactory
java.lang.Object
ice.cert.PKCS8PrivateKeyFactory
- public class PKCS8PrivateKeyFactory
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PKCS8PrivateKeyFactory
public PKCS8PrivateKeyFactory()
PKCS8PrivateKeyFactory
public PKCS8PrivateKeyFactory(byte[] key)
parsePrivateKey
public PrivateKey parsePrivateKey(InputStream inStream)
throws CertificateParsingException
- Throws:
CertificateParsingException
parsePrivateKey
public PrivateKey parsePrivateKey(byte[] encoded)
throws CertificateParsingException
- Parses a private key that is encoded in either PKCS#8 or
OpenSSL/SSLeay private key format. Only RSA keys are
implemented
- Throws:
CertificateParsingException