@Entity public class SamlAttributeQueryTicketImpl extends AbstractTicket implements SamlAttributeQueryTicket
SamlAttributeQueryTicketImpl
.PREFIX
Constructor and Description |
---|
SamlAttributeQueryTicketImpl(java.lang.String id,
Service service,
ExpirationPolicy expirationPolicy,
java.lang.String relyingParty,
java.lang.String samlObject,
TicketGrantingTicket ticketGrantingTicket)
Constructs saml attribute query ticket.
|
Modifier and Type | Method and Description |
---|---|
Authentication |
getAuthentication()
Authentication information from the ticket.
|
java.lang.String |
getPrefix()
Gets prefix.
|
ProxyGrantingTicket |
grantProxyGrantingTicket(java.lang.String id,
Authentication authentication,
ExpirationPolicy expirationPolicy)
Method to grant a TicketGrantingTicket from this service to the
authentication.
|
boolean |
isFromNewLogin()
Determine if this ticket was created at the same time as a
TicketGrantingTicket.
|
boolean |
isValidFor(Service serviceToValidate)
Attempts to ensure that the service specified matches the service associated with the ticket.
|
compareTo, getTicketGrantingTicket, isExpired, isExpiredInternal, markTicketExpired, toString, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObject, getRelyingParty
getService
getCountOfUses, getCreationTime, getExpirationPolicy, getId, getTicketGrantingTicket, isExpired, markTicketExpired
getCountOfUses, getCreationTime, getLastTimeUsed, getPreviousTimeUsed
public SamlAttributeQueryTicketImpl(java.lang.String id, Service service, ExpirationPolicy expirationPolicy, java.lang.String relyingParty, java.lang.String samlObject, TicketGrantingTicket ticketGrantingTicket)
id
- the unique identifier for the ticket.service
- the service this ticket is for.expirationPolicy
- the expiration policy.relyingParty
- the relying partysamlObject
- the saml objectticketGrantingTicket
- the ticket granting ticketjava.lang.IllegalArgumentException
- if the service or authentication are null.public boolean isFromNewLogin()
ServiceTicket
isFromNewLogin
in interface ServiceTicket
public boolean isValidFor(Service serviceToValidate)
ServiceTicket
isValidFor
in interface ServiceTicket
serviceToValidate
- The incoming service to match this service ticket against.public ProxyGrantingTicket grantProxyGrantingTicket(java.lang.String id, Authentication authentication, ExpirationPolicy expirationPolicy)
ServiceTicket
grantProxyGrantingTicket
in interface ServiceTicket
id
- The unique identifier for this ticket.authentication
- The Authentication we wish to grant a ticket for.expirationPolicy
- expiration policy associated with this ticketpublic Authentication getAuthentication()
TicketState
getAuthentication
in interface TicketState
getAuthentication
in class AbstractTicket