Package io.jans.as.server.model.common
Class SessionId
- java.lang.Object
-
- io.jans.as.server.model.common.SessionId
-
- All Implemented Interfaces:
io.jans.orm.model.base.Deletable
,java.io.Serializable
@Named("sessionUser") public class SessionId extends java.lang.Object implements io.jans.orm.model.base.Deletable, java.io.Serializable
- Version:
- December 8, 2018
- Author:
- Yuriy Zabrovarnyy, Javier Rojas Blum
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OLD_SESSION_ID_ATTR_KEY
-
Constructor Summary
Constructors Constructor Description SessionId()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPermission(java.lang.String clientId, java.lang.Boolean granted)
boolean
equals(java.lang.Object o)
java.util.Date
getAuthenticationTime()
java.util.Date
getCreationDate()
java.lang.String
getDn()
java.util.Date
getExpirationDate()
java.lang.String
getId()
java.lang.Boolean
getIsJwt()
java.lang.String
getJwt()
java.util.Date
getLastUsedAt()
java.lang.String
getOPBrowserState()
java.lang.String
getOutsideSid()
java.lang.Boolean
getPermissionGranted()
SessionIdAccessMap
getPermissionGrantedMap()
@NotNull java.util.Map<java.lang.String,java.lang.String>
getSessionAttributes()
java.lang.String
getSessionState()
SessionIdState
getState()
int
getTtl()
io.jans.as.common.model.common.User
getUser()
java.lang.String
getUserDn()
int
hashCode()
java.lang.Boolean
isDeletable()
java.lang.Boolean
isPermissionGrantedForClient(java.lang.String clientId)
boolean
isPersisted()
void
setAuthenticationTime(java.util.Date authenticationTime)
void
setCreationDate(java.util.Date creationDate)
void
setDeletable(java.lang.Boolean deletable)
void
setDn(java.lang.String dn)
void
setExpirationDate(java.util.Date expirationDate)
void
setId(java.lang.String id)
void
setIsJwt(java.lang.Boolean isJwt)
void
setJwt(java.lang.String jwt)
void
setLastUsedAt(java.util.Date lastUsedAt)
void
setOutsideSid(java.lang.String outsideSid)
void
setPermissionGranted(java.lang.Boolean permissionGranted)
void
setPermissionGrantedMap(SessionIdAccessMap permissionGrantedMap)
void
setPersisted(boolean persisted)
void
setSessionAttributes(java.util.Map<java.lang.String,java.lang.String> sessionAttributes)
void
setSessionState(java.lang.String sessionState)
void
setState(SessionIdState state)
void
setTtl(int ttl)
void
setUser(io.jans.as.common.model.common.User user)
void
setUserDn(java.lang.String userDn)
java.lang.String
toString()
-
-
-
Field Detail
-
OLD_SESSION_ID_ATTR_KEY
public static final java.lang.String OLD_SESSION_ID_ATTR_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTtl
public int getTtl()
-
setTtl
public void setTtl(int ttl)
-
getDn
public java.lang.String getDn()
-
setDn
public void setDn(java.lang.String dn)
-
getJwt
public java.lang.String getJwt()
-
setJwt
public void setJwt(java.lang.String jwt)
-
getIsJwt
public java.lang.Boolean getIsJwt()
-
setIsJwt
public void setIsJwt(java.lang.Boolean isJwt)
-
getState
public SessionIdState getState()
-
setState
public void setState(SessionIdState state)
-
getSessionState
public java.lang.String getSessionState()
-
setSessionState
public void setSessionState(java.lang.String sessionState)
-
getOPBrowserState
public java.lang.String getOPBrowserState()
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getLastUsedAt
public java.util.Date getLastUsedAt()
-
setLastUsedAt
public void setLastUsedAt(java.util.Date lastUsedAt)
-
getUserDn
public java.lang.String getUserDn()
-
setUserDn
public void setUserDn(java.lang.String userDn)
-
getUser
public io.jans.as.common.model.common.User getUser()
-
setUser
public void setUser(io.jans.as.common.model.common.User user)
-
getAuthenticationTime
public java.util.Date getAuthenticationTime()
-
setAuthenticationTime
public void setAuthenticationTime(java.util.Date authenticationTime)
-
getPermissionGranted
public java.lang.Boolean getPermissionGranted()
-
setPermissionGranted
public void setPermissionGranted(java.lang.Boolean permissionGranted)
-
getPermissionGrantedMap
public SessionIdAccessMap getPermissionGrantedMap()
-
setPermissionGrantedMap
public void setPermissionGrantedMap(SessionIdAccessMap permissionGrantedMap)
-
isPermissionGrantedForClient
public java.lang.Boolean isPermissionGrantedForClient(java.lang.String clientId)
-
addPermission
public void addPermission(java.lang.String clientId, java.lang.Boolean granted)
-
getSessionAttributes
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.String> getSessionAttributes()
-
setSessionAttributes
public void setSessionAttributes(java.util.Map<java.lang.String,java.lang.String> sessionAttributes)
-
isPersisted
public boolean isPersisted()
-
setPersisted
public void setPersisted(boolean persisted)
-
getExpirationDate
public java.util.Date getExpirationDate()
-
setExpirationDate
public void setExpirationDate(java.util.Date expirationDate)
-
isDeletable
public java.lang.Boolean isDeletable()
- Specified by:
isDeletable
in interfaceio.jans.orm.model.base.Deletable
-
setDeletable
public void setDeletable(java.lang.Boolean deletable)
-
getCreationDate
public java.util.Date getCreationDate()
-
setCreationDate
public void setCreationDate(java.util.Date creationDate)
-
setOutsideSid
public void setOutsideSid(java.lang.String outsideSid)
-
getOutsideSid
public java.lang.String getOutsideSid()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-