Class SigningPolicy
java.lang.Object
org.globus.gsi.SigningPolicy
Represents a signing policy associated with a particular CA. The signing policy defines a list of distinguished
names which are allowed to sign certificates for a particular Certificate Authority subject distinguished name.
- Since:
- 1.0
- Version:
- ${version}
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSigningPolicy(X500Principal caSubjectDN, String[] allowedDNs) Create a signing policy for the supplied subject which allows the supplied list of DNs to sign certificates.SigningPolicy(X500Principal caSubjectDN, List<Pattern> allowedDNs) Create a signing policy for the supplied subject which allows subjects whose DNs match one of the supplied patterns to sign certificates. -
Method Summary
Modifier and TypeMethodDescriptionReturn the patterns which identify the valid signing entities.Get CA subject DN for which this signing policy is defined.booleanMethod to determine if a signing policy is available for a given DN.booleanisValidSubject(X500Principal subject) Ascertains if the subjectDN is valid against this policy.
-
Field Details
-
caSubject
-
allowedDNs
-
-
Constructor Details
-
SigningPolicy
Create a signing policy for the supplied subject which allows the supplied list of DNs to sign certificates.- Parameters:
caSubjectDN- The DN for the subject to which this policy applies.allowedDNs- The list of DNs which can sign certs for this subject.
-
SigningPolicy
Create a signing policy for the supplied subject which allows subjects whose DNs match one of the supplied patterns to sign certificates.- Parameters:
caSubjectDN- The DN for the subject to which this policy applies.allowedDNs- A list of patterns to which to compare signing entity DNs.
-
-
Method Details
-
getCASubjectDN
Get CA subject DN for which this signing policy is defined.- Returns:
- returns the CA subject
-
isValidSubject
Ascertains if the subjectDN is valid against this policy.- Parameters:
subject- Subject DN to be validated- Returns:
- true if the DN is valid under this policy and false if it is not
-
getAllowedDNs
-
isPolicyAvailable
public boolean isPolicyAvailable()Method to determine if a signing policy is available for a given DN.- Returns:
- If the patterns vector is not null and has atleast one element, true is returned. Else the method returns false.
-