public class AdminHelper
extends java.lang.Object
Constructor and Description |
---|
AdminHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<TaggedName> |
buildCertificateInfo(java.util.Map source,
java.lang.String title)
Builds
TaggedName objects from the specified source. |
static java.util.ArrayList<TaggedName> |
buildCertificateTreeNodes(java.util.Map source)
Builds the array of certificate properties given by their tagged names.
|
static java.lang.String |
getCertificateDetail(java.lang.String DN,
java.lang.String prop)
From the given Distinctive Name data, extract the value for specified
property.
|
static java.lang.String |
getPropertyLabel(java.lang.String prop)
Given a certificate property, it returns its readable form.
|
static java.util.Map<java.lang.String,java.lang.String> |
parseDistinctiveName(java.lang.String DN)
Extract properties from the give Distinctive Name data.
|
static java.lang.String |
wrapIntoCaseInsensitivePattern(java.lang.String substring)
Returns a regular expression pattern for the given search string that is "case insensitive".
|
public static java.lang.String wrapIntoCaseInsensitivePattern(java.lang.String substring)
substring
- The given search string.public static java.util.Map<java.lang.String,java.lang.String> parseDistinctiveName(java.lang.String DN)
The properties are separated by commas; the value is separated from the key by '=' sign. Also, if value contains commas or '=' signs, it will be quoted.
In the returned map, all keys will be converted to lowercase.
DN
- The DN data to be parsed.public static java.lang.String getCertificateDetail(java.lang.String DN, java.lang.String prop)
DN
- The DN data which holds the property.prop
- The property which value should be extractedpublic static java.util.ArrayList<TaggedName> buildCertificateInfo(java.util.Map source, java.lang.String title)
TaggedName
objects from the specified source. Also, it
adds a title row with the specified text.source
- a map for which the its prop
entry holds atitle
- the title to be addedpublic static java.util.ArrayList<TaggedName> buildCertificateTreeNodes(java.util.Map source)
source
- The certificate properties mappublic static java.lang.String getPropertyLabel(java.lang.String prop)
prop
- The given certificate property name