use of org.maxkey.authz.cas.endpoint.ticket.Ticket in project MaxKey by dromara.
the class RedisTicketGrantingTicketServices method remove.
@Override
public Ticket remove(String ticketId) {
RedisConnection conn = connectionFactory.getConnection();
Ticket ticket = conn.getObject(PREFIX + ticketId);
conn.delete(PREFIX + ticketId);
conn.close();
return ticket;
}
use of org.maxkey.authz.cas.endpoint.ticket.Ticket in project MaxKey by dromara.
the class InMemoryProxyGrantingTicketServices method remove.
@Override
public Ticket remove(String ticketId) {
Ticket ticket = casTicketStore.getIfPresent(ticketId);
casTicketStore.invalidate(ticketId);
return ticket;
}
use of org.maxkey.authz.cas.endpoint.ticket.Ticket in project MaxKey by dromara.
the class RedisProxyGrantingTicketServices method remove.
@Override
public Ticket remove(String ticketId) {
RedisConnection conn = connectionFactory.getConnection();
Ticket ticket = conn.getObject(PREFIX + ticketId);
conn.delete(PREFIX + ticketId);
conn.close();
return ticket;
}
use of org.maxkey.authz.cas.endpoint.ticket.Ticket in project MaxKey by dromara.
the class RedisProxyGrantingTicketServices method get.
@Override
public Ticket get(String ticketId) {
RedisConnection conn = connectionFactory.getConnection();
Ticket ticket = conn.getObject(PREFIX + ticketId);
conn.close();
return ticket;
}
use of org.maxkey.authz.cas.endpoint.ticket.Ticket in project MaxKey by dromara.
the class InMemoryTicketServices method remove.
@Override
public Ticket remove(String ticketId) {
Ticket ticket = casTicketStore.getIfPresent(ticketId);
casTicketStore.invalidate(ticketId);
return ticket;
}
Aggregations