Ejemplo n.º 1
0
 public BasicSecurityToken(String owner, String viewer, String app,
                           String domain, String appUrl, String moduleId, String container)
 {
     tokenData = new Dictionary <String, String>();
     putNullSafe(OWNER_KEY, owner);
     putNullSafe(VIEWER_KEY, viewer);
     putNullSafe(APP_KEY, app);
     putNullSafe(DOMAIN_KEY, domain);
     putNullSafe(APPURL_KEY, appUrl);
     putNullSafe(MODULE_KEY, moduleId);
     putNullSafe(CONTAINER_KEY, container);
     token = crypter.wrap(tokenData);
 }
Ejemplo n.º 2
0
 /**
  * @return an encrypted blob of state to store with the client.
  * @throws BlobCrypterException
  */
 public String getEncryptedState()
 {
     return(crypter.wrap(state));
 }