Example #1
0
    public void setPassword(Principal principal, PasswordCallback callback)
        throws IOException, AccountNotFoundException {
      // Let the read DB set the password
      _realPricipalDatabase.setPassword(principal, callback);

      // Retrieve the setpassword
      char[] plainPassword = callback.getPassword();

      char[] hexPassword = toHex(plainPassword);

      callback.setPassword(hexPassword);
    }
Example #2
0
 public boolean createPrincipal(Principal principal, char[] password) {
   return _realPricipalDatabase.createPrincipal(principal, password);
 }
Example #3
0
 public boolean updatePassword(Principal principal, char[] password)
     throws AccountNotFoundException {
   return _realPricipalDatabase.updatePassword(principal, password);
 }
Example #4
0
 // Simply delegate to the real PrincipalDB
 public boolean verifyPassword(String principal, char[] password)
     throws AccountNotFoundException {
   return _realPricipalDatabase.verifyPassword(principal, password);
 }
Example #5
0
 public void reload() throws IOException {
   _realPricipalDatabase.reload();
 }
Example #6
0
 public List<Principal> getUsers() {
   return _realPricipalDatabase.getUsers();
 }
Example #7
0
 public Map<String, AuthenticationProviderInitialiser> getMechanisms() {
   return _realPricipalDatabase.getMechanisms();
 }
Example #8
0
 public Principal getUser(String username) {
   return _realPricipalDatabase.getUser(username);
 }
Example #9
0
 public boolean deletePrincipal(Principal principal) throws AccountNotFoundException {
   return _realPricipalDatabase.deletePrincipal(principal);
 }