Class AdminService.Duck
- java.lang.Object
-
- com.sun.enterprise.config.serverbeans.AdminService.Duck
-
- Enclosing interface:
- AdminService
public static class AdminService.Duck extends Object
-
-
Constructor Summary
Constructors Constructor Description Duck()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthRealm
getAssociatedAuthRealm(AdminService as)
This is the place where the iteration for theAuthRealm
for administration should be carried out in server.static JmxConnector
getSystemJmxConnector(AdminService as)
static boolean
usesFileRealm(AdminService as)
Returns true if the classname of associated authrealm is same as fully qualified FileRealm classname.
-
-
-
Method Detail
-
getSystemJmxConnector
public static JmxConnector getSystemJmxConnector(AdminService as)
-
getAssociatedAuthRealm
public static AuthRealm getAssociatedAuthRealm(AdminService as)
This is the place where the iteration for theAuthRealm
for administration should be carried out in server. A convenience method for the same.- Parameters:
as
- AdminService implemented by those who implement the interface (outer interface).- Returns:
- AuthRealm instance for which the name is same as as.getAuthRealmName(), null otherwise.
-
usesFileRealm
public static boolean usesFileRealm(AdminService as)
Returns true if the classname of associated authrealm is same as fully qualified FileRealm classname.- Parameters:
as
- "This" Admin Service- Returns:
- true if associated authrealm is nonnull and its classname equals "com.sun.enterprise.security.auth.realm.file.FileRealm", false otherwise
-
-