Exemplo n.º 1
0
 public static String encode(String secret)
     throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException,
         BadPaddingException, IllegalBlockSizeException {
   return SecureIdentityLoginModule.encode(null, secret);
 }
Exemplo n.º 2
0
 public static void main(String[] args) throws Exception {
   System.out.println(
       "Encoded password: "******"Config_RsA+")));
   System.out.println(
       "decoded password: "******"-4c9aff763d955675")));
 }