public class OpensslNamespacePolicyImpl extends java.lang.Object implements NamespacePolicy
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
definedForSubject |
private java.lang.String |
identification |
private java.lang.String |
issuer |
private java.util.regex.Pattern |
pattern |
private boolean |
permit |
private java.lang.String |
subject |
Constructor and Description |
---|
OpensslNamespacePolicyImpl(java.lang.String issuer,
java.lang.String subject,
java.lang.String definedForSubject,
boolean permit,
java.lang.String identification) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefinedFor() |
java.lang.String |
getIdentification() |
java.lang.String |
getIssuer() |
java.lang.String |
getSuject() |
boolean |
isPermit() |
boolean |
isSubjectMatching(javax.security.auth.x500.X500Principal subject)
Checks whether the given subject name is matching this policy.
|
private java.lang.String issuer
private java.lang.String subject
private java.lang.String definedForSubject
private java.lang.String identification
private boolean permit
private java.util.regex.Pattern pattern
public OpensslNamespacePolicyImpl(java.lang.String issuer, java.lang.String subject, java.lang.String definedForSubject, boolean permit, java.lang.String identification) throws java.io.IOException
java.io.IOException
public java.lang.String getIssuer()
getIssuer
in interface NamespacePolicy
public java.lang.String getSuject()
public boolean isPermit()
isPermit
in interface NamespacePolicy
public java.lang.String getIdentification()
getIdentification
in interface NamespacePolicy
public boolean isSubjectMatching(javax.security.auth.x500.X500Principal subject)
isSubjectMatching
in interface NamespacePolicy
subject
- to be checkedpublic java.lang.String getDefinedFor()
getDefinedFor
in interface NamespacePolicy
NamespacePolicy.getIssuer()
hash or it may be its parent CA subject name hash, if the namespace was defined in
its namespaces file.