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