org.glite.voms
Class SigningPolicy
java.lang.Object
org.glite.voms.SigningPolicy
public class SigningPolicy
extends java.lang.Object
The purpose of this class is to represent a *.signing_policy file.
int | findIssuer(String issuer) - Finds the record in the signing policy which deals with the specified
issuer.
|
int | findIssuer(String issuer, int previous) - Finds the record in the signing policy which deals with the specified
issuer, starting from a specified record.
|
String | getAccessIDCA() - Gets the AccessIDCA from the current record.
|
Vector | getCondSubjects() - Gets the CondSubjects from the current record.
|
String | getName() - Gets the basename of the file from which this was loaded.
|
String | getPosRights() - Gets the PosRights from the current record.
|
void | setCurrent(int index) - Sets the indicate record as the current record.
|
SigningPolicy
public SigningPolicy(File f)
throws IOException
Loads a *.signing_policy file.
f
- the File from which to load the Signing Policy.
findIssuer
public int findIssuer(String issuer)
Finds the record in the signing policy which deals with the specified
issuer.
issuer
- an OpenSSL-style representation of the issuer.
- the record number, or -1 if none is found.
findIssuer
public int findIssuer(String issuer,
int previous)
Finds the record in the signing policy which deals with the specified
issuer, starting from a specified record.
issuer
- an OpenSSL-style representation of the issuer.previous
- the previous match, or -1 if ther was no previous match.
- the record number, or -1 if none is found.
getAccessIDCA
public String getAccessIDCA()
Gets the AccessIDCA from the current record.
getCondSubjects
public Vector getCondSubjects()
Gets the CondSubjects from the current record.
- a Vector of CondSubjects. Each element is a String.
getName
public String getName()
Gets the basename of the file from which this was loaded.
- the basename or null if nothign was loaded.
getPosRights
public String getPosRights()
Gets the PosRights from the current record.
setCurrent
public void setCurrent(int index)
Sets the indicate record as the current record.
index
- the record number