public class DistinguishedNameParserImpl extends Object implements DistinguishedNameParser
Constructor and Description |
---|
DistinguishedNameParserImpl() |
Modifier and Type | Method and Description |
---|---|
X509Certificate |
convertCertificate(Certificate cert)
Convert the certificate object into an X509Certificate object.
|
Path |
getCredentialManagerDefaultDirectory(ApplicationConfiguration applicationConfiguration)
Get the configuration directory where the security stuff will be/is saved
to.
|
String |
getMessageDigestAsFormattedString(byte[] messageBytes,
String digestAlgorithm)
Get the message digest of the given byte array as a string of hexadecimal
characters in the form XX:XX:XX...
|
static Path |
getTheCredentialManagerDefaultDirectory(ApplicationConfiguration applicationConfiguration)
Get the configuration directory where the security stuff will be/is saved
to.
|
ParsedDistinguishedNameImpl |
parseDN(String DNstr)
Parses a DN string and fills in fields with DN parts.
|
URI |
setFragmentForURI(URI uri,
String fragment) |
URI |
setUserInfoForURI(URI uri,
String userinfo) |
public static Path getTheCredentialManagerDefaultDirectory(ApplicationConfiguration applicationConfiguration)
public final Path getCredentialManagerDefaultDirectory(ApplicationConfiguration applicationConfiguration)
DistinguishedNameParser
getCredentialManagerDefaultDirectory
in interface DistinguishedNameParser
public final URI setFragmentForURI(URI uri, String fragment) throws URISyntaxException
setFragmentForURI
in interface DistinguishedNameParser
URISyntaxException
public final URI setUserInfoForURI(URI uri, String userinfo) throws URISyntaxException
setUserInfoForURI
in interface DistinguishedNameParser
URISyntaxException
public final X509Certificate convertCertificate(Certificate cert) throws CMException
DistinguishedNameParser
convertCertificate
in interface DistinguishedNameParser
CMException
public String getMessageDigestAsFormattedString(byte[] messageBytes, String digestAlgorithm)
getMessageDigestAsFormattedString
in interface DistinguishedNameParser
public ParsedDistinguishedNameImpl parseDN(String DNstr)
parseDN
in interface DistinguishedNameParser
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.