public class CryptoServiceImpl extends Object implements CryptoService
| Constructor and Description |
|---|
CryptoServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
KeyStore |
createPemKeyStore()
This is used by SSLWrap, which is used by the "tls" module, to create a Java key store that works
with SSLEngine but which contains keys that were loaded from PEM using this module.
|
Provider |
getProvider() |
X509Certificate |
readCertificate(InputStream is) |
KeyPair |
readKeyPair(String algorithm,
InputStream is,
char[] passphrase) |
KeyPair |
readKeyPair(String algorithm,
String pem,
char[] passphrase) |
PublicKey |
readPublicKey(String algorithm,
InputStream is) |
PublicKey |
readPublicKey(String algorithm,
String pem) |
public static final String RSA
public static final String DSA
public Provider getProvider()
getProvider in interface CryptoServicepublic KeyPair readKeyPair(String algorithm, InputStream is, char[] passphrase) throws IOException, CryptoException
readKeyPair in interface CryptoServiceIOExceptionCryptoExceptionpublic KeyPair readKeyPair(String algorithm, String pem, char[] passphrase) throws IOException, CryptoException
readKeyPair in interface CryptoServiceIOExceptionCryptoExceptionpublic PublicKey readPublicKey(String algorithm, InputStream is) throws IOException, CryptoException
readPublicKey in interface CryptoServiceIOExceptionCryptoExceptionpublic PublicKey readPublicKey(String algorithm, String pem) throws IOException, CryptoException
readPublicKey in interface CryptoServiceIOExceptionCryptoExceptionpublic X509Certificate readCertificate(InputStream is) throws IOException, CryptoException
readCertificate in interface CryptoServiceIOExceptionCryptoExceptionpublic KeyStore createPemKeyStore()
createPemKeyStore in interface CryptoServiceCopyright © 2014 Apigee Corporation. All Rights Reserved.