com.ibm.security.auth

Class NTDomainPrincipal

  • java.lang.Object
    • com.ibm.security.auth.NTDomainPrincipal
  • All Implemented Interfaces:
    java.io.Serializable, java.security.Principal

    Deprecated. 
    replaced by DomainPrincipal.

    @Deprecated
    public class NTDomainPrincipal
    extends java.lang.Object
    implements java.security.Principal, java.io.Serializable

    This class implements the Principal interface and represents the name of the Windows NT domain into which the user authenticated. This will be a domain name if the user logged into a Windows NT domain, a workgroup name if the user logged into a workgroup, or a machine name if the user logged into a standalone configuration.

    Principals such as this NTDomainPrincipal may be associated with a particular Subject to augment that Subject with an additional identity. Refer to the Subject class for more information on how to achieve this. Authorization decisions can then be based upon the Principals associated with a Subject.

    See Also:
    Principal, Subject, DomainPrincipal, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      NTDomainPrincipal(java.lang.String name)
      Deprecated. 
      Create an NTDomainPrincipal with a Windows NT domain name.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o)
      Deprecated. 
      Compares the specified Object with this NTDomainPrincipal for equality.
      java.lang.String getName()
      Deprecated. 
      Return the Windows NT domain name for this NTDomainPrincipal.
      int hashCode()
      Deprecated. 
      Return a hash code for this NTDomainPrincipal.
      java.lang.String toString()
      Deprecated. 
      Return a string representation of this NTDomainPrincipal.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        implies
    • Constructor Detail

      • NTDomainPrincipal

        public NTDomainPrincipal(java.lang.String name)
        Deprecated. 
        Create an NTDomainPrincipal with a Windows NT domain name.

        Parameters:
        name - the Windows NT domain name for this user.

        Throws:
        java.lang.NullPointerException - if the name is null.
    • Method Detail

      • getName

        public java.lang.String getName()
        Deprecated. 
        Return the Windows NT domain name for this NTDomainPrincipal.

        Specified by:
        getName in interface java.security.Principal
        Returns:
        the Windows NT domain name for this NTDomainPrincipal
      • toString

        public java.lang.String toString()
        Deprecated. 
        Return a string representation of this NTDomainPrincipal.

        Specified by:
        toString in interface java.security.Principal
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this NTDomainPrincipal.
      • equals

        public boolean equals(java.lang.Object o)
        Deprecated. 
        Compares the specified Object with this NTDomainPrincipal for equality. Returns true if the given object is also a NTDomainPrincipal and the two NTDomainPrincipals have the same name.

        Specified by:
        equals in interface java.security.Principal
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - Object to be compared for equality with this NTDomainPrincipal.
        Returns:
        true if the specified Object is equal equal to this NTDomainPrincipal.
      • hashCode

        public int hashCode()
        Deprecated. 
        Return a hash code for this NTDomainPrincipal.

        Specified by:
        hashCode in interface java.security.Principal
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code for this NTDomainPrincipal.

© Copyright 2003, 2015 IBM Corporation. All rights reserved.
© Copyright 2003, 2015, Oracle and/or its affiliates. All rights reserved.