Class RsaKeyStoreHelperTest
- java.lang.Object
-
- de.hybris.platform.oauth2.jwt.util.RsaKeyStoreHelperTest
-
@UnitTest public class RsaKeyStoreHelperTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RsaKeyStoreHelperTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildAndVerify()voidsetUp()voidtestGetKeyStoreInputStreamString()Test method forRsaKeyStoreHelper.getKeyStore(java.io.InputStream, java.lang.String).voidtestGetKeyStoreInputStreamStringInvalidPassword()Test method forRsaKeyStoreHelper.getKeyStore(java.io.InputStream, java.lang.String).voidtestGetPrivateKey()voidtestGetPrivateKeyInvalidAlias()voidtestGetPublicKey()voidtestGetSignerInputStreamStringString()
-
-
-
Method Detail
-
setUp
public void setUp()
-
testGetKeyStoreInputStreamString
public void testGetKeyStoreInputStreamString() throws java.io.FileNotFoundException, java.io.IOExceptionTest method forRsaKeyStoreHelper.getKeyStore(java.io.InputStream, java.lang.String).- Throws:
java.io.IOExceptionjava.io.FileNotFoundException
-
testGetKeyStoreInputStreamStringInvalidPassword
public void testGetKeyStoreInputStreamStringInvalidPassword() throws KeyStoreProcessingException, java.io.FileNotFoundException, java.io.IOExceptionTest method forRsaKeyStoreHelper.getKeyStore(java.io.InputStream, java.lang.String).- Throws:
java.io.IOExceptionjava.io.FileNotFoundExceptionKeyStoreProcessingException
-
testGetPrivateKey
public void testGetPrivateKey() throws java.io.FileNotFoundException, java.io.IOExceptionTest method forRsaKeyStoreHelper.getPrivateKey(java.security.KeyStore, java.lang.String, java.lang.String).- Throws:
java.io.IOExceptionjava.io.FileNotFoundException
-
testGetPrivateKeyInvalidAlias
public void testGetPrivateKeyInvalidAlias() throws KeyStoreProcessingException, java.io.FileNotFoundException, java.io.IOException- Throws:
KeyStoreProcessingExceptionjava.io.FileNotFoundExceptionjava.io.IOException
-
testGetPublicKey
public void testGetPublicKey() throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.IOExceptionjava.io.FileNotFoundException
-
testGetSignerInputStreamStringString
public void testGetSignerInputStreamStringString() throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.FileNotFoundExceptionjava.io.IOException
-
buildAndVerify
public void buildAndVerify() throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.FileNotFoundExceptionjava.io.IOException
-
-