com.cyclonecommerce.cybervan.api
Class SecurityLevel

java.lang.Object
  |
  +--com.cyclonecommerce.cybervan.api.SecurityLevel

public class SecurityLevel
extends java.lang.Object
implements java.io.Serializable

Represents a description of the level of security with with a document was transported

Version:
2.2
See Also:
Serialized Form

Field Summary
static int CLEAR
           
static int ENCRYPTED
           
static int SIGNED
           
static int SIGNED_AND_ENCRYPTED
           
 
Constructor Summary
SecurityLevel()
           
 
Method Summary
 int getLevel()
          Returns the final security level
 boolean isEncrypted()
          Returns true if the document was signed, false if not
 boolean isSigned()
          Returns true if the document was encrypted, false if not
 void setEncrypted()
          Indicates that a document was encrypted
 void setLevel(int level)
          Sets the final security level
 void setSigned()
          Indicates that a document was signed
 void turnOffEncrypted()
          Method turnOffEncrypted
 void turnOffSigned()
          Method turnOffSigned
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLEAR

public static final int CLEAR

SIGNED

public static final int SIGNED

ENCRYPTED

public static final int ENCRYPTED

SIGNED_AND_ENCRYPTED

public static final int SIGNED_AND_ENCRYPTED
Constructor Detail

SecurityLevel

public SecurityLevel()
Method Detail

isEncrypted

public boolean isEncrypted()
Returns true if the document was signed, false if not
Returns:
 

isSigned

public boolean isSigned()
Returns true if the document was encrypted, false if not
Returns:
 

setSigned

public void setSigned()
Indicates that a document was signed

turnOffSigned

public void turnOffSigned()
Method turnOffSigned

setEncrypted

public void setEncrypted()
Indicates that a document was encrypted

turnOffEncrypted

public void turnOffEncrypted()
Method turnOffEncrypted

setLevel

public void setLevel(int level)
Sets the final security level
Parameters:
level - The final security level

getLevel

public int getLevel()
Returns the final security level
Returns: