public class DNReformatter
extends java.lang.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,
java.lang.String field_separator) |
DNReformatter(org.bouncycastle.asn1.DERObjectIdentifier[] order,
java.lang.String field_separator,
java.lang.String begin_dn,
java.lang.String end_dn,
java.lang.String begin_value,
java.lang.String end_value) |
DNReformatter(java.lang.String[] symbols,
java.lang.String field_separator,
java.lang.String begin_dn,
java.lang.String end_dn,
java.lang.String begin_value,
java.lang.String end_value) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
format(java.util.List<com.peterphi.std.crypto.DNReformatter.DNInformation> dn)
Formats an ordered DNInformation list
|
protected boolean |
interested(org.bouncycastle.asn1.DERObjectIdentifier oid) |
protected java.util.List<com.peterphi.std.crypto.DNReformatter.DNInformation> |
order(java.util.List<com.peterphi.std.crypto.DNReformatter.DNInformation> dn) |
protected java.util.List<com.peterphi.std.crypto.DNReformatter.DNInformation> |
parse(org.bouncycastle.asn1.x509.X509Name n) |
javax.security.auth.x500.X500Principal |
reformat(javax.security.auth.x500.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. |
java.lang.String |
reformatToString(javax.security.auth.x500.X500Principal p)
Reformats an X500Principal; the result may not be a valid X500Principal, so this method returns a String
|
java.lang.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,
java.lang.String field_separator)
public DNReformatter(org.bouncycastle.asn1.DERObjectIdentifier[] order,
java.lang.String field_separator,
java.lang.String begin_dn,
java.lang.String end_dn,
java.lang.String begin_value,
java.lang.String end_value)
public DNReformatter(java.lang.String[] symbols,
java.lang.String field_separator,
java.lang.String begin_dn,
java.lang.String end_dn,
java.lang.String begin_value,
java.lang.String end_value)
public javax.security.auth.x500.X500Principal reformat(javax.security.auth.x500.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 java.lang.String reformatToString(javax.security.auth.x500.X500Principal p)
p - public java.lang.String reformatToString(org.bouncycastle.asn1.x509.X509Name dn)
dn - protected java.util.List<com.peterphi.std.crypto.DNReformatter.DNInformation> order(java.util.List<com.peterphi.std.crypto.DNReformatter.DNInformation> dn)
protected java.lang.String format(java.util.List<com.peterphi.std.crypto.DNReformatter.DNInformation> dn)
dn - protected java.util.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.