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()
Session
getIdentifier
in interface Session
public Optional<IRI> getDelegatedBy()
Session
getDelegatedBy
in interface Session
public Instant getCreated()
Session
getCreated
in interface Session
public static Session from(SecurityContext security)
security
- the security context