bwLehrpool Masterserver
Manages authentication and sharing of virtual machines between participating institutions
AccessCode.java
Go to the documentation of this file.
1 package org.openslx.imagemaster.session;
2 
3 import org.openslx.bwlp.thrift.iface.ClientSessionData;
4 import org.openslx.bwlp.thrift.iface.TAuthorizationException;
5 
6 public class AccessCode
7 {
8 
9  public final long timeout = System.currentTimeMillis() + 600_000;
10 
11  public final ClientSessionData clientSession;
12 
13  public final TAuthorizationException ex;
14 
15  public AccessCode( ClientSessionData clientSession, TAuthorizationException ex )
16  {
17  this.clientSession = clientSession;
18  this.ex = ex;
19  }
20 
21  public boolean timedOut()
22  {
23  return System.currentTimeMillis() > this.timeout;
24  }
25 
26 }
AccessCode(ClientSessionData clientSession, TAuthorizationException ex)
Definition: AccessCode.java:15
final TAuthorizationException ex
Definition: AccessCode.java:13