public KeyStore getJavaKeyStore ( String keyStoreName ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getJavaKeyStore: " + keyStoreName ) ; if ( keyStoreName == null || keyStoreName . trim ( ) . isEmpty ( ) ) { throw new SSLException ( "No keystore name provided." ) ; } KeyStore javaKeyStore = null ; WSKeyStore ks = keyStoreMap . get ( keyStoreName ) ; if ( ks != null ) { javaKeyStore = ks . getKeyStore ( false , false ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getJavaKeyStore: " + javaKeyStore ) ; return javaKeyStore ; }
Returns the java keystore object based on the keystore name passed in .