@Entity public class RefreshTokenImpl extends OAuthCodeImpl implements RefreshToken
PREFIX
Constructor and Description |
---|
RefreshTokenImpl(java.lang.String id,
Service service,
Authentication authentication,
ExpirationPolicy expirationPolicy,
TicketGrantingTicket ticketGrantingTicket,
java.util.Collection<java.lang.String> scopes)
Constructs a new refresh token with unique id for a service and authentication.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrefix()
Gets prefix.
|
getAuthentication, getScopes, getService, getTicketGrantingTicket, grantProxyGrantingTicket, isFromNewLogin, isValidFor
compareTo, isExpired, isExpiredInternal, markTicketExpired, toString, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuthentication, getScopes
getService, grantProxyGrantingTicket, isFromNewLogin, isValidFor
getCountOfUses, getCreationTime, getExpirationPolicy, getId, getTicketGrantingTicket, isExpired, markTicketExpired
getCountOfUses, getCreationTime, getLastTimeUsed, getPreviousTimeUsed
public RefreshTokenImpl(java.lang.String id, Service service, Authentication authentication, ExpirationPolicy expirationPolicy, TicketGrantingTicket ticketGrantingTicket, java.util.Collection<java.lang.String> scopes)
id
- the unique identifier for the ticket.service
- the service this ticket is for.authentication
- the authentication.expirationPolicy
- the expiration policy.ticketGrantingTicket
- the ticket granting ticketscopes
- the scopesjava.lang.IllegalArgumentException
- if the service or authentication are null.public java.lang.String getPrefix()
Ticket
getPrefix
in interface Ticket
getPrefix
in class OAuthCodeImpl