public KeyManagerFactory getKeyManagerFactoryInstance ( String keyMgr , String ctxtProvider ) throws NoSuchAlgorithmException , NoSuchProviderException { String mgr = keyMgr ; String provider = ctxtProvider ; if ( mgr . indexOf ( ' ' ) != - 1 ) { String [ ] keyManagerArray = mgr . split ( "\\|" ) ; if ( keyManagerArray != null && keyManagerArray . length == 2 ) { mgr = keyManagerArray [ 0 ] ; provider = keyManagerArray [ 1 ] ; } } KeyManagerFactory rc = KeyManagerFactory . getInstance ( mgr , provider ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getKeyManagerFactory.getInstance(" + mgr + ", " + provider + ") " + rc ) ; return rc ; }
Get the key manager factory instance using the provided information .