Class Authentication.RealmRef

java.lang.Object
org.elasticsearch.xpack.core.security.authc.Authentication.RealmRef
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject
Enclosing class:
Authentication

public static class Authentication.RealmRef extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentObject
Authentication.RealmRef expresses the grouping of realms, identified with RealmConfig.RealmIdentifiers, under RealmDomains. A domain groups different realms, such that any username, authenticated by different realms from the same domain, is to be associated to a single Profile.
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • getNodeName

      public String getNodeName()
    • getName

      public String getName()
    • getType

      public String getType()
    • getDomain

      @Nullable public RealmDomain getDomain()
      Returns the domain assignment for the realm, if one assigned, or null otherwise, as per the RealmSettings#DOMAIN_TO_REALM_ASSOC_SETTING setting.
    • getIdentifier

      public RealmConfig.RealmIdentifier getIdentifier()
      The RealmIdentifier is the fully qualified way to refer to a realm.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • newAnonymousRealmRef

      public static Authentication.RealmRef newAnonymousRealmRef(String nodeName)