public class CryptoServiceImpl extends java.lang.Object implements CryptoService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DSA |
static java.lang.String |
RSA |
| Constructor and Description |
|---|
CryptoServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.security.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.
|
byte[] |
generatePBKDF2(byte[] password,
byte[] salt,
int iterations,
int keyLen)
Use Bouncy Castle to generate a PBKDF2 key.
|
java.security.Provider |
getProvider() |
java.security.cert.X509Certificate |
readCertificate(java.io.InputStream is) |
java.security.KeyPair |
readKeyPair(java.lang.String algorithm,
java.io.InputStream is,
char[] passphrase) |
java.security.KeyPair |
readKeyPair(java.lang.String algorithm,
java.lang.String pem,
char[] passphrase) |
java.security.PublicKey |
readPublicKey(java.lang.String algorithm,
java.io.InputStream is) |
java.security.PublicKey |
readPublicKey(java.lang.String algorithm,
java.lang.String pem) |
public static final java.lang.String RSA
public static final java.lang.String DSA
public java.security.Provider getProvider()
getProvider in interface CryptoServicepublic java.security.KeyPair readKeyPair(java.lang.String algorithm,
java.io.InputStream is,
char[] passphrase)
throws java.io.IOException,
CryptoException
readKeyPair in interface CryptoServicejava.io.IOExceptionCryptoExceptionpublic java.security.KeyPair readKeyPair(java.lang.String algorithm,
java.lang.String pem,
char[] passphrase)
throws java.io.IOException,
CryptoException
readKeyPair in interface CryptoServicejava.io.IOExceptionCryptoExceptionpublic java.security.PublicKey readPublicKey(java.lang.String algorithm,
java.io.InputStream is)
throws java.io.IOException,
CryptoException
readPublicKey in interface CryptoServicejava.io.IOExceptionCryptoExceptionpublic java.security.PublicKey readPublicKey(java.lang.String algorithm,
java.lang.String pem)
throws java.io.IOException,
CryptoException
readPublicKey in interface CryptoServicejava.io.IOExceptionCryptoExceptionpublic java.security.cert.X509Certificate readCertificate(java.io.InputStream is)
throws java.io.IOException,
CryptoException
readCertificate in interface CryptoServicejava.io.IOExceptionCryptoExceptionpublic java.security.KeyStore createPemKeyStore()
createPemKeyStore in interface CryptoServicepublic byte[] generatePBKDF2(byte[] password,
byte[] salt,
int iterations,
int keyLen)
generatePBKDF2 in interface CryptoServiceCopyright © 2018 Apigee Corporation. All Rights Reserved.