Home | History | Annotate | Download | only in security

Lines Matching defs:guard

32  * <p>A GuardedObject encapsulates a target object and a Guard object,
34 * only if the Guard object allows it.
38 * {@code checkGuard} method on the Guard object that is
42 * @see Guard
54 private Guard guard; // the guard
57 * Constructs a GuardedObject using the specified object and guard.
58 * If the Guard object is null, then no restrictions will
63 * @param guard the Guard object that guards access to the object.
66 public GuardedObject(Object object, Guard guard)
68 this.guard = guard;
74 * to the guarded object is denied by the guard.
84 if (guard != null)
85 guard.checkGuard(object);
92 * We check the guard if there is one.
97 if (guard != null)
98 guard.checkGuard(object);