| Modifier and Type | Field and Description |
|---|---|
static String |
ADMIN_ROLE
The admin role.
|
| Constructor and Description |
|---|
HttpSession()
Create an HTTP-based session.
|
HttpSession(IRI agent)
Create an HTTP-based session.
|
HttpSession(IRI agent,
IRI delegatedBy)
Create an HTTP-based session.
|
| Modifier and Type | Method and Description |
|---|---|
static Session |
from(SecurityContext security)
Create a session from a security context.
|
IRI |
getAgent()
Get an agent identifier.
|
Instant |
getCreated()
Get the date when the session was created.
|
Optional<IRI> |
getDelegatedBy()
Get the user that delegated access, if one exists.
|
IRI |
getIdentifier()
Get a session identifier.
|
public static final String ADMIN_ROLE
public HttpSession(IRI agent, IRI delegatedBy)
agent - the agentdelegatedBy - the delegatedBy valuepublic HttpSession(IRI agent)
agent - the agentpublic HttpSession()
public IRI getIdentifier()
SessiongetIdentifier in interface Sessionpublic Optional<IRI> getDelegatedBy()
SessiongetDelegatedBy in interface Sessionpublic Instant getCreated()
SessiongetCreated in interface Sessionpublic static Session from(SecurityContext security)
security - the security context