public char [ ] loadPassword ( String account ) { byte [ ] pwBytes = loadPassword0 ( account . getBytes ( UTF_8 ) ) ; if ( pwBytes == null ) { return null ; } else { CharBuffer pwBuf = UTF_8 . decode ( ByteBuffer . wrap ( pwBytes ) ) ; char [ ] pw = new char [ pwBuf . remaining ( ) ] ; pwBuf . get ( pw ) ; Arrays . fill ( pwBytes , ( byte ) 0x00 ) ; Arrays . fill ( pwBuf . array ( ) , ( char ) 0x00 ) ; return pw ; } }
Loads the password associated with the specified key from the system keychain .