Search in sources :

Example 21 with AuthRealm

use of com.sun.enterprise.config.serverbeans.AuthRealm in project Payara by payara.

the class RealmsImpl method getConfiguredRealmNames.

/**
 * realm names as found in configuration; some might be defective and unable to be loaded
 */
private Set<String> getConfiguredRealmNames() {
    Set<String> names = new HashSet<String>();
    List<AuthRealm> realms = getAuthRealms();
    for (AuthRealm realm : realms) {
        names.add(realm.getName());
    }
    return names;
}
Also used : AuthRealm(com.sun.enterprise.config.serverbeans.AuthRealm) HashSet(java.util.HashSet)

Aggregations

AuthRealm (com.sun.enterprise.config.serverbeans.AuthRealm)21 Property (org.jvnet.hk2.config.types.Property)11 Properties (java.util.Properties)6 ArrayList (java.util.ArrayList)4 SecurityService (com.sun.enterprise.config.serverbeans.SecurityService)3 NoSuchRealmException (com.sun.enterprise.security.auth.realm.NoSuchRealmException)3 FileRealm (com.sun.enterprise.security.auth.realm.file.FileRealm)3 ActionReport (org.glassfish.api.ActionReport)3 Config (com.sun.enterprise.config.serverbeans.Config)2 Realm (com.sun.enterprise.security.auth.realm.Realm)2 IOException (java.io.IOException)2 ServerNotActiveException (java.rmi.server.ServerNotActiveException)2 LoginException (javax.security.auth.login.LoginException)2 RemoteAdminAccessException (org.glassfish.internal.api.RemoteAdminAccessException)2 Domain (com.sun.enterprise.config.serverbeans.Domain)1 FileRealmUser (com.sun.enterprise.security.auth.realm.file.FileRealmUser)1 LDAPRealm (com.sun.enterprise.security.auth.realm.ldap.LDAPRealm)1 PropertyVetoException (java.beans.PropertyVetoException)1 File (java.io.File)1 Enumeration (java.util.Enumeration)1