public class LoginSession extends Object
In the absolute termination time the maxInactivity time is also used, but only after the absolute expiration time has passed. This prevents killing such session when it is being used.
Constructor and Description |
---|
LoginSession() |
LoginSession(String id,
Date started,
Date expires,
long maxInactivity,
long entityId,
String realm)
Construct a session with absolute expiration.
|
LoginSession(String id,
Date started,
long maxInactivity,
long entityId,
String realm)
Constructs a session with relative expiration
|
Modifier and Type | Method and Description |
---|---|
void |
addAuthenticatedIdentities(Collection<String> identity) |
void |
deserialize(pl.edu.icm.unity.base.token.Token token) |
Set<String> |
getAuthenticatedIdentities() |
long |
getEntityId() |
String |
getEntityLabel() |
Date |
getExpires() |
String |
getId() |
Date |
getLastUsed() |
long |
getMaxInactivity() |
String |
getRealm() |
String |
getRemoteIdP() |
Map<String,String> |
getSessionData() |
Date |
getStarted() |
byte[] |
getTokenContents() |
boolean |
isUsedOutdatedCredential() |
void |
setEntityId(long entityId) |
void |
setEntityLabel(String entityLabel) |
void |
setExpires(Date expires) |
void |
setId(String id) |
void |
setLastUsed(Date lastUsed) |
void |
setMaxInactivity(long maxInactivity) |
void |
setRealm(String realm) |
void |
setRemoteIdP(String remoteIdP) |
void |
setSessionData(Map<String,String> sessionData) |
void |
setStarted(Date started) |
void |
setUsedOutdatedCredential(boolean usedOutdatedCredential) |
String |
toString() |
public LoginSession()
public LoginSession(String id, Date started, Date expires, long maxInactivity, long entityId, String realm)
id
- started
- expires
- maxInactivity
- entityId
- realm
- public String getId()
public void setId(String id)
public Date getStarted()
public void setStarted(Date started)
public Date getExpires()
public void setExpires(Date expires)
public long getEntityId()
public void setEntityId(long entityId)
public String getRealm()
public void setRealm(String realm)
public Date getLastUsed()
public void setLastUsed(Date lastUsed)
public long getMaxInactivity()
public void setMaxInactivity(long maxInactivity)
public boolean isUsedOutdatedCredential()
public void setUsedOutdatedCredential(boolean usedOutdatedCredential)
public String getEntityLabel()
public void setEntityLabel(String entityLabel)
public void addAuthenticatedIdentities(Collection<String> identity)
public String getRemoteIdP()
public void setRemoteIdP(String remoteIdP)
public void deserialize(pl.edu.icm.unity.base.token.Token token)
public byte[] getTokenContents()
Copyright © 2017 Unity. All rights reserved.