Class AuthToken
- java.lang.Object
-
- com.floragunn.searchguard.authtoken.AuthToken
-
- All Implemented Interfaces:
Serializable,org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class AuthToken extends Object implements org.elasticsearch.xcontent.ToXContentObject, org.elasticsearch.common.io.stream.Writeable, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,Object>INDEX_MAPPING
-
Constructor Summary
Constructors Constructor Description AuthToken(org.elasticsearch.common.io.stream.StreamInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AuthTokenPrivilegeBasegetBase()InstantgetCreationTime()InstantgetExpiryTime()StringgetId()RequestedPrivilegesgetRequestedPrivileges()InstantgetRevokedAt()StringgetTokenName()StringgetUserName()inthashCode()booleanisRevoked()static AuthTokenparse(String id, com.fasterxml.jackson.databind.JsonNode jsonNode)StringtoString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)org.elasticsearch.xcontent.XContentBuildertoXContentFragment(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)
-
-
-
Constructor Detail
-
AuthToken
public AuthToken(org.elasticsearch.common.io.stream.StreamInput in) throws IOException- Throws:
IOException
-
-
Method Detail
-
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
-
toXContentFragment
public org.elasticsearch.xcontent.XContentBuilder toXContentFragment(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
getId
public String getId()
-
getRequestedPrivileges
public RequestedPrivileges getRequestedPrivileges()
-
getUserName
public String getUserName()
-
getTokenName
public String getTokenName()
-
getBase
public AuthTokenPrivilegeBase getBase()
-
isRevoked
public boolean isRevoked()
-
parse
public static AuthToken parse(String id, com.fasterxml.jackson.databind.JsonNode jsonNode) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
getCreationTime
public Instant getCreationTime()
-
getExpiryTime
public Instant getExpiryTime()
-
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws IOException- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
IOException
-
getRevokedAt
public Instant getRevokedAt()
-
-