24 */
25
26 package com.sun.security.auth;
27
28 import java.security.Principal;
29
30 /**
31 * <p> This class implements the <code>Principal</code> interface
32 * and represents a Unix user.
33 *
34 * <p> Principals such as this <code>UnixPrincipal</code>
35 * may be associated with a particular <code>Subject</code>
36 * to augment that <code>Subject</code> with an additional
37 * identity. Refer to the <code>Subject</code> class for more information
38 * on how to achieve this. Authorization decisions can then be based upon
39 * the Principals associated with a <code>Subject</code>.
40 *
41 * @see java.security.Principal
42 * @see javax.security.auth.Subject
43 */
44 public class UnixPrincipal implements Principal, java.io.Serializable {
45
46 private static final long serialVersionUID = -2951667807323493631L;
47
48 /**
49 * @serial
50 */
51 private String name;
52
53 /**
54 * Create a UnixPrincipal with a Unix username.
55 *
56 * <p>
57 *
58 * @param name the Unix username for this user.
59 *
60 * @exception NullPointerException if the <code>name</code>
61 * is <code>null</code>.
62 */
63 public UnixPrincipal(String name) {
|
24 */
25
26 package com.sun.security.auth;
27
28 import java.security.Principal;
29
30 /**
31 * <p> This class implements the <code>Principal</code> interface
32 * and represents a Unix user.
33 *
34 * <p> Principals such as this <code>UnixPrincipal</code>
35 * may be associated with a particular <code>Subject</code>
36 * to augment that <code>Subject</code> with an additional
37 * identity. Refer to the <code>Subject</code> class for more information
38 * on how to achieve this. Authorization decisions can then be based upon
39 * the Principals associated with a <code>Subject</code>.
40 *
41 * @see java.security.Principal
42 * @see javax.security.auth.Subject
43 */
44 @jdk.Supported
45 public class UnixPrincipal implements Principal, java.io.Serializable {
46
47 private static final long serialVersionUID = -2951667807323493631L;
48
49 /**
50 * @serial
51 */
52 private String name;
53
54 /**
55 * Create a UnixPrincipal with a Unix username.
56 *
57 * <p>
58 *
59 * @param name the Unix username for this user.
60 *
61 * @exception NullPointerException if the <code>name</code>
62 * is <code>null</code>.
63 */
64 public UnixPrincipal(String name) {
|