Microsoft SDK for Java

ClientStoragePermission Class

The ClientStoragePermission Class of the com.ms.security.permissions package represents a permission for controlling access to client-side storage that is available through the ClientStore class.

public class ClientStoragePermission implements IPermission,
            IEncodablePermission, Cloneable
{
  // Fields
  public static final int FL_CANROAM;
  public static final int FL_GLOBALEXEMPT;

  // Constructors
  public ClientStoragePermission();
  public ClientStoragePermission(long limit);
  public ClientStoragePermission(long limit, int flags);

  // Methods
  public void check(Object request) throws SecurityException;
  public IPermission combine(IPermission source2);
  public int compareSet(Object target);
  public IPermission copy();
  public boolean decode(String tag, InputStream data);
  public boolean encode(String tag, OutputStream out);
  public int getFlags();
  public long getStorageLimit();
  public String mapFormat(String format);
  public void reset();
  public void setFlags(int flags);
  public void setStorageLimit(long limit);
  public String[] supportedFormats();
  public String toString();
}

The ClientStoragePermission permission specifies a limit on the total amount of data that can be written. If the FL_GLOBALEXEMPT flag has been specified, the limit is an absolute limit. If the limit has not been specified, the amount of data written is also bounded by the global limit.

If the FL_CANROAM flag has been specified, "roaming" files can be created. Roaming files are created in the user's profile and are present on any computer the user is logged on to.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.