Stay organized with collections
Save and categorize content based on your preferences.
javax.security.auth.x500
This package contains the classes that should be used to store
X500 Principal and X500 Private Credentials in a
Subject.
Package Specification
Classes
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# javax.security.auth.x500\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\njavax.security.auth.x500\n========================\n\nThis package contains the classes that should be used to store X500 Principal and X500 Private Credentials in a *Subject* .\n\nPackage Specification\n---------------------\n\n- [RFC 1779: A String Representation of Distinguished Names](http://www.ietf.org/rfc/rfc1779.txt)\n- [RFC 2253: Lightweight Directory Access Protocol (v3):\n UTF-8 String Representation of Distinguished Names](http://www.ietf.org/rfc/rfc2253.txt)\n- [RFC 3280: Internet X.509 Public Key Infrastructure\n Certificate and Certificate Revocation List (CRL) Profile](http://www.ietf.org/rfc/rfc3280.txt)\n- [RFC 4512: Lightweight Directory Access Protocol (LDAP):\n Directory Information Models](http://www.ietf.org/rfc/rfc4512.txt)\n\nClasses\n-------\n\n|------------------------------------------------------------------------------------|---------------------------------------------------|\n| [X500Principal](/reference/javax/security/auth/x500/X500Principal) | This class represents an X.500 `Principal`. |\n| [X500PrivateCredential](/reference/javax/security/auth/x500/X500PrivateCredential) | This class represents an `X500PrivateCredential`. |\n\n-\n\n Classes\n -------\n\n - [X500Principal](/reference/javax/security/auth/x500/X500Principal)\n - [X500PrivateCredential](/reference/javax/security/auth/x500/X500PrivateCredential)"]]