source: fedd/abac-src/rtml/src/edu/stanford/rt/credential/IssuerAndRoleDeclaration.java @ b770aa0

axis_examplecompt_changesinfo-opsversion-2.00version-3.01version-3.02
Last change on this file since b770aa0 was 8780cbec, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

ABAC sources from Cobham

  • Property mode set to 100644
File size: 910 bytes
Line 
1package edu.stanford.rt.credential;
2
3/**
4 * @author Ninghui Li, Sandra Qiu<br>
5 *
6 * An object which includes a <code>Principal</code> and
7 * a <code>RoleDeclaration</code> object. It is used as an index
8 * to index the role definitions in <code>CredentialStore</code>.
9 */
10public class IssuerAndRoleDeclaration
11{
12        private Principal issuer;
13        private RoleDeclaration roleDeclaration;
14       
15        /**
16         * Constructor for IssuerAndRoleDeclaration.
17         */
18        public IssuerAndRoleDeclaration(Principal issuer, 
19                        RoleDeclaration roleDeclaration)
20        {
21                this.issuer = issuer;
22                this.roleDeclaration = roleDeclaration;
23        }
24
25
26        /**
27         * Returns the issuer.
28         * @return Principal
29         */
30        public Principal getIssuer()
31        {
32                return issuer;
33        }
34
35        /**
36         * Returns the roleDeclaration.
37         * @return RoleDeclaration
38         */
39        public RoleDeclaration getRoleDeclaration()
40        {
41                return roleDeclaration;
42        }
43
44}
Note: See TracBrowser for help on using the repository browser.