private KeyManager [ ] createKeyManagers ( ContextAware context ) throws NoSuchProviderException , NoSuchAlgorithmException , UnrecoverableKeyException , KeyStoreException { if ( getKeyStore ( ) == null ) return null ; KeyStore keyStore = getKeyStore ( ) . createKeyStore ( ) ; context . addInfo ( "key store of type '" + keyStore . getType ( ) + "' provider '" + keyStore . getProvider ( ) + "': " + getKeyStore ( ) . getLocation ( ) ) ; KeyManagerFactory kmf = getKeyManagerFactory ( ) . createKeyManagerFactory ( ) ; context . addInfo ( "key manager algorithm '" + kmf . getAlgorithm ( ) + "' provider '" + kmf . getProvider ( ) + "'" ) ; char [ ] passphrase = getKeyStore ( ) . getPassword ( ) . toCharArray ( ) ; kmf . init ( keyStore , passphrase ) ; return kmf . getKeyManagers ( ) ; }
Creates key managers using the receiver s key store configuration .