public class TicketContainer extends Object
| Modifier and Type | Field and Description |
|---|---|
static TicketContainer |
instance |
| Constructor and Description |
|---|
TicketContainer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getTicket(String principal)
get or create ticket for Websocket authentication assigned to authenticated shiro user
For unathenticated user (anonymous), always return ticket value "anonymous"
|
boolean |
isValid(String principal,
String ticket)
For test use
|
public static final TicketContainer instance
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.