|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.gsi.SigningPolicy
public class SigningPolicy
Class that holds signing policy information. It contains the CA subject DN for which the signing policy is stored, an optional name of the file from which the policy was read in and if available a vector of Pattern that contain the DN pattern. The Pattern should use the grammar described in java.util.Pattern, see SigningPolicyParser#getPattern(). Note: All subject DNs should be in Globus format (with slashes) and in order (that is NOT reversed)
Constructor Summary | |
---|---|
SigningPolicy(String caDN_)
Creates a signing policy for the given CA DN |
|
SigningPolicy(String caDN_,
Vector patterns_)
Creates a signing policy for the given CA DN and vector of policies. |
|
SigningPolicy(String caDN_,
Vector patterns_,
String fileName_)
Creates a signing policy for the given CA DN and vector of policies. |
Method Summary | |
---|---|
String |
getCaSubject()
Returns the CA subject DN |
String |
getFileName()
Returns file name |
Vector |
getPatterns()
Returns the allowed subject DN patterns. |
boolean |
isPolicyAvailable()
Method to determine if a signing policy is available for a given DN. |
boolean |
isValidSubject(String subjectDN)
Method to determine if the subject DN matches one of the patterns in the signing policy. |
void |
setFileName(String fileName_)
Sets file name from which the signing policy was read. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SigningPolicy(String caDN_)
caDN_
- Distinguished Name of the CA, in Globus format (with
slashes) and not reversed. See CertUtil#toGlobusID()public SigningPolicy(String caDN_, Vector patterns_)
caDN_
- Distinguished Name of the CA, in Globus format (with
slashes) and not reversed. See CertUtil.toGlobusID()patterns_
- Vector of java.util.Pattern, each representing an allowed
subject DN policy.public SigningPolicy(String caDN_, Vector patterns_, String fileName_)
caDN_
- Distinguished Name of the CA, in Globus format (with
slashes) and not reversed. See CertUtil.toGlobusID()patterns_
- Vector of java.util.Pattern, each representing an allowed
subject DN policy.fileName_
- name of the signing policy file.Method Detail |
---|
public Vector getPatterns()
public String getCaSubject()
public String getFileName()
public void setFileName(String fileName_)
fileName_
- File name.public boolean isPolicyAvailable()
public boolean isValidSubject(String subjectDN)
subjectDN
- Subject DN to match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |