To Create a Realm

The GlassFish Server comes preconfigured with three realms: file, certificate, and admin-realm. It is also possible to create ldap, JDBC, solaris, and custom realms. Generally, you will have one realm of each type on a server, but on the GlassFish Server there are two file realms: file and admin-realm. These are two realms of the same type used for two different purposes. It is also possible to have a different certificate database for each virtual server on your system.

  1. In the navigation tree, expand the Configuration node.
  2. Expand the Security node.
  3. Select the Realms node.

    The Realms page opens.

  4. On the Realms page, click New.

    The New Realm page opens.

  5. In the Name field, type a name for the realm.
  6. To specify the class name for the realm, do either of the following:
  7. (Optional) In the Additional Properties section, specify additional properties.

    To add a property, click the Add Property button. In the blank row that appears, type the property name in the Name field, and type the property value in the Value field.

    Valid properties depend on the type of realm.

  8. Click OK.
See Also
Copyright © 2010 Oracle and/or its affiliates. All rights reserved. Legal Notices