src/share/classes/com/sun/security/auth/SolarisPrincipal.java

Print this page




  27 
  28 import java.security.Principal;
  29 
  30 /**
  31  * <p> This class implements the <code>Principal</code> interface
  32  * and represents a Solaris user.
  33  *
  34  * <p> Principals such as this <code>SolarisPrincipal</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  * @deprecated As of JDK&nbsp;1.4, replaced by
  42  *             {@link UnixPrincipal}.
  43  *             This class is entirely deprecated.
  44  * @see java.security.Principal
  45  * @see javax.security.auth.Subject
  46  */

  47 @Deprecated
  48 public class SolarisPrincipal implements Principal, java.io.Serializable {
  49 
  50     private static final long serialVersionUID = -7840670002439379038L;
  51 
  52     private static final java.util.ResourceBundle rb =
  53           java.security.AccessController.doPrivileged
  54           (new java.security.PrivilegedAction<java.util.ResourceBundle>() {
  55               public java.util.ResourceBundle run() {
  56                   return (java.util.ResourceBundle.getBundle
  57                                 ("sun.security.util.AuthResources"));
  58               }
  59           });
  60 
  61 
  62     /**
  63      * @serial
  64      */
  65     private String name;
  66 




  27 
  28 import java.security.Principal;
  29 
  30 /**
  31  * <p> This class implements the <code>Principal</code> interface
  32  * and represents a Solaris user.
  33  *
  34  * <p> Principals such as this <code>SolarisPrincipal</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  * @deprecated As of JDK&nbsp;1.4, replaced by
  42  *             {@link UnixPrincipal}.
  43  *             This class is entirely deprecated.
  44  * @see java.security.Principal
  45  * @see javax.security.auth.Subject
  46  */
  47 @jdk.Supported
  48 @Deprecated
  49 public class SolarisPrincipal implements Principal, java.io.Serializable {
  50 
  51     private static final long serialVersionUID = -7840670002439379038L;
  52 
  53     private static final java.util.ResourceBundle rb =
  54           java.security.AccessController.doPrivileged
  55           (new java.security.PrivilegedAction<java.util.ResourceBundle>() {
  56               public java.util.ResourceBundle run() {
  57                   return (java.util.ResourceBundle.getBundle
  58                                 ("sun.security.util.AuthResources"));
  59               }
  60           });
  61 
  62 
  63     /**
  64      * @serial
  65      */
  66     private String name;
  67