Interface SubjectSession
-
public interface SubjectSession
Subject (end-user) session.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getAuthLifetime()
Gets the authentication lifetime.@Nullable net.minidev.json.JSONObject
getClaims()
Returns the optional claims about the subject.Instant
getCreationTime()
Gets the session creation time.@Nullable net.minidev.json.JSONObject
getData()
Returns the optional data.long
getMaxIdleTime()
Gets the maximum session idle time.long
getMaxLifetime()
Gets the maximum session lifetime.Set<com.nimbusds.oauth2.sdk.id.ClientID>
getRelyingParties()
Returns the OpenID relying parties logged in during the session.com.nimbusds.oauth2.sdk.id.Subject
getSubject()
Returns the session subject.SubjectAuthentication
getSubjectAuthentication()
Returns the subject authentication.
-
-
-
Method Detail
-
getSubject
com.nimbusds.oauth2.sdk.id.Subject getSubject()
Returns the session subject. Shorthand forgetSubjectAuthentication.getSubject()
.- Returns:
- The session subject.
-
getSubjectAuthentication
SubjectAuthentication getSubjectAuthentication()
Returns the subject authentication.- Returns:
- The subject authentication.
-
getCreationTime
Instant getCreationTime()
Gets the session creation time.- Returns:
- The creation time.
-
getMaxLifetime
long getMaxLifetime()
Gets the maximum session lifetime.- Returns:
- The maximum lifetime in minutes, unlimited if negative, not specified if zero.
-
getAuthLifetime
long getAuthLifetime()
Gets the authentication lifetime.- Returns:
- The authentication lifetime in minutes, unlimited if negative, not specified if zero.
-
getMaxIdleTime
long getMaxIdleTime()
Gets the maximum session idle time.- Returns:
- The maximum idle time in minutes, unlimited if negative, not specified if zero.
-
getRelyingParties
Set<com.nimbusds.oauth2.sdk.id.ClientID> getRelyingParties()
Returns the OpenID relying parties logged in during the session.- Returns:
- The logged in OpenID relying parties, empty set if none.
-
getClaims
@Nullable net.minidev.json.JSONObject getClaims()
Returns the optional claims about the subject.- Returns:
- The optional claims,
null
if none.
-
getData
@Nullable net.minidev.json.JSONObject getData()
Returns the optional data.- Returns:
- The optional data,
null
if none.
-
-