com.sun.security.auth (Java SE 26 & JDK 26)
Description: declaration: module: jdk.security.auth, package: com.sun.security.auth
Keywords: com.sun.security.auth package

# Package com.sun.security.auth

package com.sun.security.auth
Provides implementations of `Principal`.

Since:
  1.4

- Related Packages
  Package
  Description
  com.sun.security.auth.callback
  Provides an implementation of `CallbackHandler`.
  com.sun.security.auth.login
  Provides an implementation of `Configuration`.
  com.sun.security.auth.module
  Provides implementations of `LoginModule`.
- Class
  Description
  LdapPrincipal
  A principal identified by a distinguished name as specified by RFC 2253.
  NTDomainPrincipal
  This class implements the `Principal` interface and represents the name of the Windows NT domain into which the user authenticated.
  NTNumericCredential
  This class abstracts an NT security token and provides a mechanism to do same-process security impersonation.
  NTSid
  This class implements the `Principal` interface and represents information about a Windows NT user, group or realm.
  NTSidDomainPrincipal
  This class extends `NTSid` and represents a Windows NT user's domain SID.
  NTSidGroupPrincipal
  This class extends `NTSid` and represents one of the groups to which a Windows NT user belongs.
  NTSidPrimaryGroupPrincipal
  This class extends `NTSid` and represents a Windows NT user's primary group SID.
  NTSidUserPrincipal
  This class extends `NTSid` and represents a Windows NT user's SID.
  NTUserPrincipal
  This class implements the `Principal` interface and represents a Windows NT user.
  PrincipalComparator
  An object that implements the `java.security.Principal` interface typically also implements this interface to provide a means for comparing that object to a specified `Subject`.
  UnixNumericGroupPrincipal
  This class implements the `Principal` interface and represents a user's Unix group identification number (GID).
  UnixNumericUserPrincipal
  This class implements the `Principal` interface and represents a user's Unix identification number (UID).
  UnixPrincipal
  This class implements the `Principal` interface and represents a Unix user.
  UserPrincipal
  A user principal identified by a username or account name.