java.lang.Object
com.sun.security.auth.NTUserPrincipal
- 所有已实现的接口:
-
Serializable,Principal
此类实现了
Principal接口,表示Windows NT用户。
诸如NTUserPrincipal之类的Principal可以与特定的Subject关联,以增强该Subject的附加身份。请参阅Subject类,了解如何实现此功能。然后可以基于与Subject关联的Principal做授权决策。
- 参见:
-
Constructor Details
-
NTUserPrincipal
使用Windows NT用户名创建一个NTUserPrincipal。- 参数:
-
name- 此用户的Windows NT用户名。 - 抛出:
-
NullPointerException- 如果name为null。
-
-
Method Details
-
getName
返回此NTPrincipal的Windows NT用户名。 -
toString
返回此NTPrincipal的字符串表示形式。 -
equals
将指定的对象与此NTUserPrincipal进行比较,以确定它们是否相等。如果给定对象也是NTUserPrincipal,并且两个NTUserPrincipals具有相同的名称,则返回true。 -
hashCode
public int hashCode()返回此NTUserPrincipal的哈希码。
-