Package org.apereo.cas.ticket.registry
Class RedisTicketDocument
java.lang.Object
org.apereo.cas.ticket.registry.RedisTicketDocument
- All Implemented Interfaces:
Serializable
This is
RedisTicketDocument
.- Since:
- 5.1.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
RedisTicketDocument.RedisTicketDocumentBuilder<C extends RedisTicketDocument,
B extends RedisTicketDocument.RedisTicketDocumentBuilder<C, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Field name to hold the principal/authentication attribute names.static final String
Field name to hold ticket id.static final String
Field name to hold ticket json data.static final String
Field name to hold ticket prefix.static final String
Field name to hold the principal id.static final String
Field name to hold ticket type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RedisTicketDocument.RedisTicketDocumentBuilder
<?, ?> builder()
boolean
static RedisTicketDocument
From document map to redis document.getJson()
getType()
int
hashCode()
setAttributes
(String attributes) setPrincipal
(String principal) setTicketId
(String ticketId) toString()
-
Field Details
-
FIELD_NAME_JSON
Field name to hold ticket json data.- See Also:
-
FIELD_NAME_TYPE
Field name to hold ticket type.- See Also:
-
FIELD_NAME_ID
Field name to hold ticket id.- See Also:
-
FIELD_NAME_PREFIX
Field name to hold ticket prefix.- See Also:
-
FIELD_NAME_PRINCIPAL
Field name to hold the principal id.- See Also:
-
FIELD_NAME_ATTRIBUTES
Field name to hold the principal/authentication attribute names.- See Also:
-
-
Constructor Details
-
RedisTicketDocument
public RedisTicketDocument()
-
-
Method Details
-
from
From document map to redis document.- Parameters:
document
- the document- Returns:
- the redis ticket document
-
builder
-
getJson
-
getTicketId
-
getType
-
getPrincipal
-
getPrefix
-
getAttributes
-
toString
-
setJson
- Returns:
this
.
-
setTicketId
- Returns:
this
.
-
setType
- Returns:
this
.
-
setPrincipal
- Returns:
this
.
-
setPrefix
- Returns:
this
.
-
setAttributes
- Returns:
this
.
-
equals
-
hashCode
public int hashCode()
-