@Override
protected synchronized AuthenticationInfo authenticationInfo() {
AuthenticationInfo result = null;
if (SecureAdmin.Util.isUsingUsernamePasswordAuth(secureAdmin)) {
final SecureAdminInternalUser secureAdminInternalUser = SecureAdmin.Util.secureAdminInternalUser(secureAdmin);
if (secureAdminInternalUser != null) {
try {
result = new AuthenticationInfo(secureAdminInternalUser.getUsername(),
new String(domainPasswordAliasStore.
get(secureAdminInternalUser.getPasswordAlias())));
} catch (Exception ex) {
throw new RuntimeException(ex);
}
}
}