01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.security;
05:
06: import java.security.Principal;
07:
08: /**
09: * An <code>AccessControlEntry</code> represents the association of one or more
10: * <code>Privilege</code> objects with a specific <code>Principal</code>.
11: *
12: * @since JCR 2.0
13: */
14: public interface AccessControlEntry {
15: /**
16: * Returns the principal associated with this access control entry.
17: * @return a <code>Principal</code>.
18: */
19: Principal getPrincipal();
20:
21: /**
22: * Returns the privileges associated with this access control entry.
23: * @return an array of <code>Privilege</code>s.
24: */
25: Privilege[] getPrivileges();
26: }
|