コード例 #1
0
 /**
  * Check whether secured attribute is already set for given vault block and attribute name. This
  * method can be called only after successful startVaultSession() call.
  *
  * @param vaultBlock
  * @param attributeName
  * @return true is password already exists for given vault block and attribute name.
  * @throws Exception
  */
 public boolean checkSecuredAttribute(String vaultBlock, String attributeName) throws Exception {
   if (handshakeKey == null) {
     throw new Exception(
         "checkSecuredAttribute method has to be called after successful startVaultSession() call.");
   }
   return vault.exists(vaultBlock, attributeName);
 }