public class RsaKeyStoreHelper extends java.lang.Object implements KeyStoreHelper
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_INSTANCE_TYPE |
| Constructor and Description |
|---|
RsaKeyStoreHelper() |
| Modifier and Type | Method and Description |
|---|---|
java.security.KeyStore |
getKeyStore(java.io.InputStream inputStream,
java.lang.String password)
Gets the key store.
|
java.security.KeyStore |
getKeyStore(java.lang.String instanceType,
java.io.InputStream inputStream,
java.lang.String password)
Gets the key store.
|
java.lang.String |
getModulusAsBase64String(byte[] modulus)
Gets Modulus as a Base64 encoded string.
|
java.security.interfaces.RSAPrivateKey |
getPrivateKey(java.security.KeyStore keyStore,
java.lang.String alias,
java.lang.String password)
Gets the private key.
|
java.lang.String |
getPublicExponentAsBase64String(byte[] publicExponent)
Gets Public Exponent as a Base64 encoded string.
|
java.security.interfaces.RSAPublicKey |
getPublicKey(java.security.KeyStore keyStore,
java.lang.String alias)
Gets the public key.
|
Signer |
getSigner(java.lang.String instanceType,
java.io.InputStream inputStream,
java.lang.String alias,
java.lang.String password)
Gets the signer.
|
public static final java.lang.String DEFAULT_INSTANCE_TYPE
public java.security.KeyStore getKeyStore(java.io.InputStream inputStream,
java.lang.String password)
throws KeyStoreProcessingException
KeyStoreHelpergetKeyStore in interface KeyStoreHelperinputStream - the input streampassword - the passwordKeyStoreProcessingException - the key store processing exceptionpublic java.security.KeyStore getKeyStore(java.lang.String instanceType,
java.io.InputStream inputStream,
java.lang.String password)
throws KeyStoreProcessingException
KeyStoreHelpergetKeyStore in interface KeyStoreHelperinstanceType - the instance typeinputStream - the input streampassword - the passwordKeyStoreProcessingException - the key store processing exceptionpublic java.lang.String getModulusAsBase64String(byte[] modulus)
KeyStoreHelpergetModulusAsBase64String in interface KeyStoreHelpermodulus - the moduluspublic java.lang.String getPublicExponentAsBase64String(byte[] publicExponent)
KeyStoreHelpergetPublicExponentAsBase64String in interface KeyStoreHelperpublicExponent - the publicExponentpublic java.security.interfaces.RSAPrivateKey getPrivateKey(java.security.KeyStore keyStore,
java.lang.String alias,
java.lang.String password)
throws KeyStoreProcessingException
KeyStoreHelpergetPrivateKey in interface KeyStoreHelperkeyStore - the key storealias - the aliaspassword - the passwordKeyStoreProcessingException - the key store processing exceptionpublic java.security.interfaces.RSAPublicKey getPublicKey(java.security.KeyStore keyStore,
java.lang.String alias)
throws KeyStoreProcessingException
KeyStoreHelpergetPublicKey in interface KeyStoreHelperkeyStore - the key storealias - the aliasKeyStoreProcessingException - the key store processing exceptionpublic Signer getSigner(java.lang.String instanceType,
java.io.InputStream inputStream,
java.lang.String alias,
java.lang.String password)
throws KeyStoreProcessingException
KeyStoreHelpergetSigner in interface KeyStoreHelperinstanceType - the instance typeinputStream - the input streamalias - the aliaspassword - the passwordKeyStoreProcessingException - the key store processing exceptionCopyright © 2018 SAP SE. All Rights Reserved.