Module org.elasticsearch.xcore
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the domain assignment for the realm, if one assigned, ornullotherwise, as per theRealmSettings#DOMAIN_TO_REALM_ASSOC_SETTINGsetting.TheRealmIdentifieris the fully qualified way to refer to a realm.getName()getType()inthashCode()static Authentication.RealmRefnewAnonymousRealmRef(String nodeName) toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
RealmRef
-
RealmRef
-
RealmRef
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
getNodeName
-
getName
-
getType
-
getDomain
Returns the domain assignment for the realm, if one assigned, ornullotherwise, as per theRealmSettings#DOMAIN_TO_REALM_ASSOC_SETTINGsetting. -
getIdentifier
TheRealmIdentifieris the fully qualified way to refer to a realm. -
equals
-
hashCode
public int hashCode() -
toString
-
newAnonymousRealmRef
-