@Entity public class Session extends NetworkedEntity implements org.cyclos.impl.access.DelegatingMutableUserPrincipal
| Constructor and Description |
|---|
Session() |
isGlobalclone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient, toShortString, toStringpublic AccessClient getAccessClient()
getAccessClient in interface org.cyclos.impl.access.UserPrincipalpublic UserAccount getAccount()
getAccount in interface org.cyclos.impl.access.UserPrincipalpublic BasicUser getBasicUser()
getBasicUser in interface org.cyclos.impl.access.UserPrincipalpublic Channel getChannel()
public java.util.Date getCreationDate()
public UserCustomFieldValue getCustomFieldValue()
getCustomFieldValue in interface org.cyclos.impl.access.UserPrincipalpublic IdentityProvider getIdentityProvider()
public MobilePhone getMobilePhone()
getMobilePhone in interface org.cyclos.impl.access.UserPrincipalpublic Network getNetwork()
NetworkedEntitygetNetwork in class NetworkedEntitypublic Pin getPin()
public java.lang.String getPrincipal()
getPrincipal in interface org.cyclos.impl.access.DelegatingUserPrincipalgetPrincipal in interface org.cyclos.impl.access.UserPrincipalpublic PrincipalType getPrincipalType()
getPrincipalType in interface org.cyclos.impl.access.UserPrincipalpublic SessionProperties getProperties()
public java.lang.String getRemoteAddress()
public java.lang.Long getSessionId()
public TimeInterval getSessionTimeout()
SessionTimeoutHandler and
SessionHandler handle the timeouts correctly.public java.lang.String getSessionToken()
public Token getToken()
getToken in interface org.cyclos.impl.access.UserPrincipalpublic TrustedDevice getTrustedDevice()
getTrustedDevice in interface org.cyclos.impl.access.UserPrincipalpublic BasicUser getUser()
public boolean isConfirmationPasswordValidated()
public boolean isPendingSecondaryPassword()
public void setAccessClient(AccessClient accessClient)
setAccessClient in interface org.cyclos.impl.access.DelegatingMutableUserPrincipalpublic void setAccount(UserAccount account)
setAccount in interface org.cyclos.impl.access.DelegatingMutableUserPrincipalpublic void setBasicUser(BasicUser basicUser)
setBasicUser in interface org.cyclos.impl.access.DelegatingMutableUserPrincipalpublic void setChannel(Channel channel)
public void setConfirmationPasswordValidated(boolean confirmationPasswordValidated)
public void setCreationDate(java.util.Date creationDate)
public void setCustomFieldValue(UserCustomFieldValue customFieldValue)
setCustomFieldValue in interface org.cyclos.impl.access.DelegatingMutableUserPrincipalpublic void setIdentityProvider(IdentityProvider identityProvider)
public void setMobilePhone(MobilePhone mobilePhone)
setMobilePhone in interface org.cyclos.impl.access.DelegatingMutableUserPrincipalpublic void setPendingSecondaryPassword(boolean pendingSecondaryPassword)
public void setPin(Pin pin)
public void setPrincipalType(PrincipalType principalType)
setPrincipalType in interface org.cyclos.impl.access.DelegatingMutableUserPrincipalpublic void setProperties(SessionProperties properties)
public void setRemoteAddress(java.lang.String remoteAddress)
public void setSessionTimeout(TimeInterval sessionTimeout)
public void setSessionToken(java.lang.String sessionToken)
public void setToken(Token token)
setToken in interface org.cyclos.impl.access.DelegatingMutableUserPrincipalpublic void setTrustedDevice(TrustedDevice trustedDevice)
setTrustedDevice in interface org.cyclos.impl.access.DelegatingMutableUserPrincipalpublic void setUser(BasicUser user)