public class DNReformatter extends Object
| Modifier and Type | Field and Description |
|---|---|
static DNReformatter |
ACTIVE_DIRECTORY
The active directory style (descending (CN last), slash-separated with a leading slash)
|
static DNReformatter |
DCE
Synonym for ACTIVE_DIRECTORY (descending (CN last), slash-separated with a leading slash)
|
static DNReformatter |
DEFAULT
The default style (descending (CN last), comma-separated
|
static DNReformatter |
GLOBUS
Synonym for ACTIVE_DIRECTORY, the style that Globus applications tend to use (descending (CN last), slash-separated with a
leading slash)
|
static DNReformatter |
LDAP
LDAP's default style (ascending (CN first), comma-separated)
|
| Constructor and Description |
|---|
DNReformatter() |
DNReformatter(org.bouncycastle.asn1.DERObjectIdentifier[] order) |
DNReformatter(org.bouncycastle.asn1.DERObjectIdentifier[] order,
String field_separator) |
DNReformatter(org.bouncycastle.asn1.DERObjectIdentifier[] order,
String field_separator,
String begin_dn,
String end_dn,
String begin_value,
String end_value) |
DNReformatter(String[] symbols,
String field_separator,
String begin_dn,
String end_dn,
String begin_value,
String end_value) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
format(List<com.peterphi.std.crypto.DNReformatter.DNInformation> dn)
Formats an ordered DNInformation list
|
protected boolean |
interested(org.bouncycastle.asn1.DERObjectIdentifier oid) |
protected List<com.peterphi.std.crypto.DNReformatter.DNInformation> |
order(List<com.peterphi.std.crypto.DNReformatter.DNInformation> dn) |
protected List<com.peterphi.std.crypto.DNReformatter.DNInformation> |
parse(org.bouncycastle.asn1.x509.X509Name n) |
X500Principal |
reformat(X500Principal p)
This is a convenience method which calls
reformatToString and wraps the result in an X500Principal; this
method will fail with an IllegalArgumentException if the output of this formatter is not parseable by X500Principal (eg. |
org.bouncycastle.asn1.x509.X509Name |
reformat(org.bouncycastle.asn1.x509.X509Name dn)
This is a convenience method which calls
reformatToString and wraps the result in an X509Name; this method
will fail with an IllegalArgumentException if the output of this formatter is not parseable by X509Name (eg. |
String |
reformatToString(X500Principal p)
Reformats an X500Principal; the result may not be a valid X500Principal, so this method returns a String
|
String |
reformatToString(org.bouncycastle.asn1.x509.X509Name dn)
Reformats an X509Name; the result may not be a valid X509Name, so this method returns a String
|
public static final DNReformatter DEFAULT
public static final DNReformatter LDAP
public static final DNReformatter ACTIVE_DIRECTORY
public static final DNReformatter DCE
public static final DNReformatter GLOBUS
public DNReformatter()
public DNReformatter(org.bouncycastle.asn1.DERObjectIdentifier[] order)
public DNReformatter(org.bouncycastle.asn1.DERObjectIdentifier[] order,
String field_separator)
public DNReformatter(org.bouncycastle.asn1.DERObjectIdentifier[] order,
String field_separator,
String begin_dn,
String end_dn,
String begin_value,
String end_value)
public X500Principal reformat(X500Principal p)
reformatToString and wraps the result in an X500Principal; this
method will fail with an IllegalArgumentException if the output of this formatter is not parseable by X500Principal (eg.
the ACTIVE_DIRECTORY format)dn - public org.bouncycastle.asn1.x509.X509Name reformat(org.bouncycastle.asn1.x509.X509Name dn)
reformatToString and wraps the result in an X509Name; this method
will fail with an IllegalArgumentException if the output of this formatter is not parseable by X509Name (eg. the
ACTIVE_DIRECTORY format)dn - public String reformatToString(X500Principal p)
p - public String reformatToString(org.bouncycastle.asn1.x509.X509Name dn)
dn - protected List<com.peterphi.std.crypto.DNReformatter.DNInformation> order(List<com.peterphi.std.crypto.DNReformatter.DNInformation> dn)
protected String format(List<com.peterphi.std.crypto.DNReformatter.DNInformation> dn)
dn - protected List<com.peterphi.std.crypto.DNReformatter.DNInformation> parse(org.bouncycastle.asn1.x509.X509Name n)
protected boolean interested(org.bouncycastle.asn1.DERObjectIdentifier oid)
Copyright © 2014. All rights reserved.