source: fedd/abac-src/rtml/src/edu/stanford/rt/datatype/PrincipalValue.java @ 8780cbec

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

ABAC sources from Cobham

  • Property mode set to 100644
File size: 883 bytes
Line 
1package edu.stanford.rt.datatype;
2
3import edu.stanford.rt.credential.*;
4import edu.stanford.rt.datatype.*;
5
6/**
7 * @author Ninghui Li, Sandra Qiu<br>
8 *
9 * Implementation of <code>PrincipalValue</code> group element. It has a
10 * <code>Principal</code> value.
11 *
12 */
13public class PrincipalValue implements DataValue
14{
15    Principal value;
16    /**
17     * Constructor for PrincipalValue.
18     */
19    public PrincipalValue(Principal value)
20    {
21        this.value = value;
22    }
23
24        /**
25         * Method getValue.
26         * @return Principal
27         */
28    public Principal getValue()
29    {
30        return value;
31    }
32       
33        /* (non-Javadoc)
34         * @see java.lang.Object#toString()
35         */
36    public String toString()
37    {
38        StringBuffer sb = new StringBuffer();
39        sb.append(value.toString()).append("\n");
40        return sb.toString();
41    }
42   
43}
Note: See TracBrowser for help on using the repository browser.