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