Class AuthenticateResponse
java.lang.Object
co.elastic.clients.elasticsearch.security.AuthenticateResponse
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class AuthenticateResponse extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthenticateResponse.Builder
Builder forAuthenticateResponse
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<AuthenticateResponse>
_DESERIALIZER
Json deserializer forAuthenticateResponse
-
Method Summary
Modifier and Type Method Description ApiKey
apiKey()
API name:api_key
RealmInfo
authenticationRealm()
Required - API name:authentication_realm
java.lang.String
authenticationType()
Required - API name:authentication_type
java.lang.String
email()
API name:email
boolean
enabled()
Required - API name:enabled
java.lang.String
fullName()
API name:full_name
RealmInfo
lookupRealm()
Required - API name:lookup_realm
java.util.Map<java.lang.String,JsonData>
metadata()
Required - API name:metadata
static AuthenticateResponse
of(java.util.function.Function<AuthenticateResponse.Builder,ObjectBuilder<AuthenticateResponse>> fn)
java.util.List<java.lang.String>
roles()
Required - API name:roles
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupAuthenticateResponseDeserializer(ObjectDeserializer<AuthenticateResponse.Builder> op)
ServiceToken
token()
API name:token
java.lang.String
toString()
java.lang.String
username()
Required - API name:username
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forAuthenticateResponse
-
-
Method Details
-
of
public static AuthenticateResponse of(java.util.function.Function<AuthenticateResponse.Builder,ObjectBuilder<AuthenticateResponse>> fn) -
apiKey
API name:api_key
-
authenticationRealm
Required - API name:authentication_realm
-
email
@Nullable public final java.lang.String email()API name:email
-
fullName
@Nullable public final java.lang.String fullName()API name:full_name
-
lookupRealm
Required - API name:lookup_realm
-
metadata
Required - API name:metadata
-
roles
public final java.util.List<java.lang.String> roles()Required - API name:roles
-
username
public final java.lang.String username()Required - API name:username
-
enabled
public final boolean enabled()Required - API name:enabled
-
authenticationType
public final java.lang.String authenticationType()Required - API name:authentication_type
-
token
API name:token
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupAuthenticateResponseDeserializer
protected static void setupAuthenticateResponseDeserializer(ObjectDeserializer<AuthenticateResponse.Builder> op)
-