Class AdminService.Duck

    • Constructor Detail

      • Duck

        public Duck()
    • Method Detail

      • getAssociatedAuthRealm

        public static AuthRealm getAssociatedAuthRealm​(AdminService as)
        This is the place where the iteration for the AuthRealm 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