source: fedd/abac-src/rtml/src/edu/stanford/rt/credential/PublicKeyPrincipalInfo.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: 754 bytes
Line 
1package edu.stanford.rt.credential;
2
3import java.security.*;
4
5/**
6 * @author Ninghui Li, Sandra Qiu<br>
7 *
8 * This class stores the public key information about a principal.
9 */
10public class PublicKeyPrincipalInfo
11{
12        private PublicKey publicKey;
13       
14        /**
15     * Constructor for PublicKeyPrincipalInfo
16         */
17        public PublicKeyPrincipalInfo(PublicKey publicKey)
18        {
19                this.publicKey = publicKey;
20        }
21        /**
22         * Returns the publicKey.
23         * @return PublicKey
24         */
25        public PublicKey getPublicKey()
26        {
27                return publicKey;
28        }
29
30        /**
31         * Method toString.
32         * @param indent
33         * @return String
34         */
35    public String toString(String indent)
36        {
37                String thisIndent = indent + "  ";
38        return thisIndent + publicKey.toString();
39        }
40}
Note: See TracBrowser for help on using the repository browser.