Package org.trellisldp.api
Interface Session
-
- All Known Implementing Classes:
HttpSession
public interface Session
This interface represents a user's session when interacting with a Trellis resource.Users, groups and delegates are represented as
IRI
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getIdentifier
IRI getIdentifier()
Get a session identifier.- Returns:
- a session identifier
-
getAgent
IRI getAgent()
Get an agent identifier.- Returns:
- an identifier for a user/agent
-
getDelegatedBy
Optional<IRI> getDelegatedBy()
Get the user that delegated access, if one exists.- Returns:
- the user who delegated access
-
getCreated
Instant getCreated()
Get the date when the session was created.- Returns:
- the creation date
-
-