Class Domain

  • All Implemented Interfaces:
    Serializable

    public class Domain
    extends Object
    implements Serializable
    A domain, within which credentials are common. For example a company may have a single sign-on domain where a bunch of web applications, source control systems, issue trackers, etc all share the same username/password backing database.
    See Also:
    Serialized Form
    • Method Detail

      • global

        @NonNull
        public static Domain global()
        Returns the special "global" domain.
        Returns:
        the special "global" domain.
      • resolve

        public Domain resolve()
        Resolve the correct domain instance.
        Returns:
        the correct domain instance (i.e. replaces the global domain with global().
      • getDescription

        @CheckForNull
        public String getDescription()
        Returns the description of this domain.
        Returns:
        the description of this domain.
      • getName

        @CheckForNull
        public String getName()
        Returns the name of the domain.
        Returns:
        the name of the domain.
      • getUrl

        public String getUrl()
        Return the store relative URL of this domain.
        Returns:
        the store relative URL of this domain.
      • isGlobal

        public boolean isGlobal()
        Tests if this is the global() domain.
        Returns:
        true if and only if this is the global() domain.
        Since:
        2.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object