public class EuGridPmaNamespacesParser extends java.lang.Object implements NamespacesParser
NamespacePolicy
object.
The syntax is defined in the document (available from the EUGridPMA website):
eugridpma-namespaces-format-spec-20060113-0-1-4.doc, Mon, 16 January 2006.
This class is not thread safe.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
filePath |
private java.lang.String |
hash |
private java.lang.String |
issuer |
static java.lang.String |
NS_REGEXP |
private boolean |
openssl1Mode |
private boolean |
permit |
private java.lang.String |
subject |
private static java.lang.String |
SUPPORTED_VERSION |
private static java.lang.String |
VERSION_KEY |
Constructor and Description |
---|
EuGridPmaNamespacesParser(java.lang.String filePath,
boolean openssl1Mode) |
Modifier and Type | Method and Description |
---|---|
protected int |
consumeQuoted(char[] chars,
int offset,
java.lang.StringBuilder ret) |
private int |
eatSpaces(char[] string,
int offset,
boolean atLeastOne) |
protected void |
handleEntry(java.lang.String line) |
java.util.List<NamespacePolicy> |
parse() |
protected java.lang.String |
stripComments(java.lang.String from) |
private static final java.lang.String VERSION_KEY
public static final java.lang.String NS_REGEXP
private static final java.lang.String SUPPORTED_VERSION
private java.lang.String filePath
private java.lang.String hash
private java.lang.String issuer
private java.lang.String subject
private boolean permit
private boolean openssl1Mode
public EuGridPmaNamespacesParser(java.lang.String filePath, boolean openssl1Mode)
public java.util.List<NamespacePolicy> parse() throws java.io.IOException
parse
in interface NamespacesParser
java.io.IOException
protected java.lang.String stripComments(java.lang.String from) throws java.io.IOException
java.io.IOException
protected void handleEntry(java.lang.String line) throws java.io.IOException
java.io.IOException
protected int consumeQuoted(char[] chars, int offset, java.lang.StringBuilder ret) throws java.io.IOException
java.io.IOException
private int eatSpaces(char[] string, int offset, boolean atLeastOne) throws java.io.IOException
java.io.IOException