Interface SubjectSession
public interface SubjectSession
Subject (end-user) session.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the authentication lifetime.@Nullable net.minidev.json.JSONObject
Returns the optional claims about the subject.Gets the session creation time.@Nullable net.minidev.json.JSONObject
getData()
Returns the optional data.long
Gets the maximum session idle time.long
Gets the maximum session lifetime.Set<com.nimbusds.oauth2.sdk.id.ClientID>
Returns the OpenID relying parties logged in during the session.com.nimbusds.oauth2.sdk.id.Subject
Returns the session subject.Returns the subject authentication.
-
Method Details
-
getSubject
com.nimbusds.oauth2.sdk.id.Subject getSubject()Returns the session subject. Shorthand forgetSubjectAuthentication.getSubject()
.- Returns:
- The session subject.
-
getSubjectAuthentication
Returns the subject authentication.- Returns:
- The subject authentication.
-
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.
-