com.cyclonecommerce.cybervan.api
Class SecurityLevel

java.lang.Object
  |
  +--com.cyclonecommerce.cybervan.api.SecurityLevel
All Implemented Interfaces:
java.io.Serializable

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

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 signed, false if not
 void setEncrypted()
          Internal server use only
 void setLevel(int level)
          Internal server use only
 void setSigned()
          Internal server use only
 void turnOffEncrypted()
          Internal server use only
 void turnOffSigned()
          Internal server use only
 
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:
Returns true if the document was signed, false if not

isSigned

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

setSigned

public void setSigned()
Internal server use only

turnOffSigned

public void turnOffSigned()
Internal server use only

setEncrypted

public void setEncrypted()
Internal server use only

turnOffEncrypted

public void turnOffEncrypted()
Internal server use only

setLevel

public void setLevel(int level)
Internal server use only

getLevel

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