com.waveset.policy
Class EchoPolicy

java.lang.Object
  extended bycom.waveset.policy.PolicyImplementation
      extended bycom.waveset.policy.EchoPolicy

public class EchoPolicy
extends PolicyImplementation

A test policy that prints it's attributes and input arguments to the console.

This was used during very early testing, but isn't used much anymore. We might consider removing it, since it will clutter up the GUI display of available policies.


Field Summary
static java.lang.String ATT1
          An integer policy attribute.
static java.lang.String ATT2
          A string policy attribute.
static java.lang.String code_id
           
static java.lang.String DESC
          The description of this policy.
static java.lang.String PROTONAME
          The name of the prototype instance.
 
Fields inherited from class com.waveset.policy.PolicyImplementation
ALL_CHARS, NO_VALUE, trace
 
Constructor Summary
EchoPolicy()
          Construct an empty echo policy.
 
Method Summary
 void check(Policy policy, java.lang.Object value, java.util.Map params, java.util.List pwdhistory, java.lang.String owner)
          similar to check, above.
 void check(Policy policy, java.lang.Object value, java.lang.String owner)
          Echos the policy attributes and arguments.
 Policy getPrototype()
          Returns the prototype instance for this policy.
 
Methods inherited from class com.waveset.policy.PolicyImplementation
checkPolicyArg, generate, generate, generateByteArray, getAllowedAttributeValues, getAttributeFromUser, getBooleanAttribute, getContext, getIntAttribute, getIntAttribute, getObjectAttribute, getStringAttribute, getStringListAttribute, getUserPropertyName, getValue, setAttributeOnUser, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

PROTONAME

public static final java.lang.String PROTONAME
The name of the prototype instance.

See Also:
Constant Field Values

DESC

public static final java.lang.String DESC
The description of this policy.

See Also:
Constant Field Values

ATT1

public static final java.lang.String ATT1
An integer policy attribute.

See Also:
Constant Field Values

ATT2

public static final java.lang.String ATT2
A string policy attribute.

See Also:
Constant Field Values
Constructor Detail

EchoPolicy

public EchoPolicy()
Construct an empty echo policy.

Method Detail

getPrototype

public Policy getPrototype()
                    throws WavesetException
Returns the prototype instance for this policy.

Specified by:
getPrototype in class PolicyImplementation
Throws:
WavesetException

check

public void check(Policy policy,
                  java.lang.Object value,
                  java.lang.String owner)
           throws PolicyViolation,
                  WavesetException
Echos the policy attributes and arguments.

Specified by:
check in class PolicyImplementation
Throws:
PolicyViolation - if the value violates the policy.
WavesetException - if an internal error was encountered.

check

public void check(Policy policy,
                  java.lang.Object value,
                  java.util.Map params,
                  java.util.List pwdhistory,
                  java.lang.String owner)
           throws PolicyViolation,
                  WavesetException
Description copied from class: PolicyImplementation
similar to check, above. This policy check takes a map parameter that can be used in a policy-specific way to evaluate adherence. It also take a list of previous passwords that will be used to ensure that the new password is not in the list (history checking) For passwords, the parameter is a map of name value pairs that are attributes on the user object.

Specified by:
check in class PolicyImplementation
Throws:
PolicyViolation
WavesetException