@Entity public class SamlArtifactTicketImpl extends AbstractTicket implements SamlArtifactTicket
SamlArtifactTicketImpl
.PREFIX
Constructor and Description |
---|
SamlArtifactTicketImpl(java.lang.String id,
Service service,
Authentication authentication,
ExpirationPolicy expirationPolicy,
TicketGrantingTicket ticketGrantingTicket,
java.lang.String issuer,
java.lang.String relyingParty,
java.lang.String samlObject)
Constructs a new OAuth code with unique id for a service and authentication.
|
Modifier and Type | Method and Description |
---|---|
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, getAuthentication, getTicketGrantingTicket, isExpired, isExpiredInternal, markTicketExpired, toString, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIssuer, getObject, getRelyingPartyId
getService
getCountOfUses, getCreationTime, getExpirationPolicy, getId, getTicketGrantingTicket, isExpired, markTicketExpired
getCountOfUses, getCreationTime, getLastTimeUsed, getPreviousTimeUsed
public SamlArtifactTicketImpl(java.lang.String id, Service service, Authentication authentication, ExpirationPolicy expirationPolicy, TicketGrantingTicket ticketGrantingTicket, java.lang.String issuer, java.lang.String relyingParty, java.lang.String samlObject)
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 ticketissuer
- the issuerrelyingParty
- the relying partysamlObject
- the saml objectjava.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 ticket