Package org.apache.nifi.security.cert
Class StandardPrincipalFormatter
java.lang.Object
org.apache.nifi.security.cert.StandardPrincipalFormatter
- All Implemented Interfaces:
PrincipalFormatter
Standard Principal Formatter implementation returns Subject and Issuer formatted according to RFC 1779 following the convention of getSubjectDN and getIssuerDN methods
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PrincipalFormatterMap of Object Identifiers to Names not included in the standard set from X500Principal.RFC1779 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringgetFormatted(X500Principal principal) static PrincipalFormatterGet singleton instance of Principal FormattergetIssuer(X509Certificate certificate) Get Issuer Distinguished Name formatted as a string according to RFC 1779 with spaces between elementsgetSubject(X509Certificate certificate) Get Subject Distinguished Name formatted as a string according to RFC 1779 with spaces between elements
-
Field Details
-
INSTANCE
-
OBJECT_IDENTIFIER_NAMES
Map of Object Identifiers to Names not included in the standard set from X500Principal.RFC1779
-
-
Constructor Details
-
StandardPrincipalFormatter
private StandardPrincipalFormatter()
-
-
Method Details
-
getInstance
Get singleton instance of Principal Formatter- Returns:
- Standard Principal Formatter
-
getSubject
Get Subject Distinguished Name formatted as a string according to RFC 1779 with spaces between elements- Specified by:
getSubjectin interfacePrincipalFormatter- Parameters:
certificate- X.509 Certificate- Returns:
- Subject Distinguished Name formatted according to RFC 1779
-
getIssuer
Get Issuer Distinguished Name formatted as a string according to RFC 1779 with spaces between elements- Specified by:
getIssuerin interfacePrincipalFormatter- Parameters:
certificate- X.509 Certificate- Returns:
- Issuer Distinguished Name formatted according to RFC 1779
-
getFormatted
-