@AlfrescoPublicApi
public interface TicketComponent
Modifier and Type | Method and Description |
---|---|
void |
clearCurrentTicket()
Clear the current ticket
|
int |
countTickets(boolean nonExpiredOnly)
Count tickets
This may be higher than the user count, since a user can have more than one ticket/session
|
String |
getAuthorityForTicket(String ticket)
Get the authority for the given ticket
|
String |
getCurrentTicket(String userName,
boolean autoCreate)
Get the current ticket
|
String |
getNewTicket(String userName)
Register a new ticket
|
Set<String> |
getUsersWithTickets(boolean nonExpiredOnly)
Get set of users with tickets
This may be lower than the ticket count, since a user can have more than one ticket/session
|
boolean |
getUseSingleTicketPerUser()
Does this ticket component support a single ticket per user or one ticket for each time they login?
|
void |
invalidateTicketById(String ticket)
Invalidate the tickets by id
|
void |
invalidateTicketByUser(String userName)
Invalidate all user tickets
|
int |
invalidateTickets(boolean expiredOnly)
Invalidate tickets
|
String |
validateTicket(String ticket)
Check that a certificate is valid and can be used in place of a login.
|
String getNewTicket(String userName) throws AuthenticationException
userName
- StringAuthenticationException
String getCurrentTicket(String userName, boolean autoCreate)
userName
- StringautoCreate
- should we create one automatically if there isn't one?@Auditable(parameters="ticket", recordable=false) String validateTicket(String ticket) throws AuthenticationException
ticket
- StringAuthenticationException
@Auditable(parameters="ticket", recordable=false) void invalidateTicketById(String ticket)
ticket
- Stringvoid invalidateTicketByUser(String userName)
userName
- Stringint countTickets(boolean nonExpiredOnly)
nonExpiredOnly
- true for non expired tickets, false for all (including expired) ticketsSet<String> getUsersWithTickets(boolean nonExpiredOnly)
nonExpiredOnly
- true for non expired tickets, false for all (including expired) ticketsint invalidateTickets(boolean expiredOnly)
expiredOnly
- true for EXPIRED tickets, false for ALL (including non-expired) ticketsString getAuthorityForTicket(String ticket)
ticket
- Stringvoid clearCurrentTicket()
boolean getUseSingleTicketPerUser()
Copyright © 2005–2019 Alfresco Software. All rights reserved.