@ThreadSafe public class BasicSPSession extends Object implements SPSession
SPSession implementation.| Modifier and Type | Field and Description |
|---|---|
private long |
creationInstant
The time, in milliseconds since the epoch, when this session was created.
|
private long |
expirationInstant
The time, in milliseconds since the epoch, when this session expires.
|
private String |
serviceId
The unique identifier of the service.
|
| Constructor and Description |
|---|
BasicSPSession(String id,
long creation,
long expiration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getCreationInstant()
Get the time, in milliseconds since the epoch, when this session was created.
|
long |
getExpirationInstant()
Get the time, in milliseconds since the epoch, when this session will expire.
|
String |
getId() |
String |
getSPSessionKey()
Get a unique key identifying this subject's session with the service.
|
int |
hashCode() |
String |
toString() |
@Duration @Positive private final long creationInstant
public BasicSPSession(@Nonnull@NotEmpty String id, @Duration@Positive long creation, @Duration@Positive long expiration)
id - the identifier of the service associated with this sessioncreation - creation time of session, in milliseconds since the epochexpiration - expiration time of session, in milliseconds since the epoch@Nonnull @NotEmpty public String getId()
getId in interface IdentifiedComponent@Duration @Positive public long getCreationInstant()
getCreationInstant in interface SPSession@Duration @Positive public long getExpirationInstant()
getExpirationInstant in interface SPSessionpublic String getSPSessionKey()
This will vary based on the type of session, typically based on the protocol used, but it provides a secondary lookup key that may be required in support of other use cases involving that protocol. Not all protocols may require such a key, so null may be returned.
getSPSessionKey in interface SPSessionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.