org.glite.voms
public class SigningPolicy extends java.lang.Object
Constructor and Description |
---|
SigningPolicy(java.io.File f)
Loads a *.signing_policy file.
|
Modifier and Type | Method and Description |
---|---|
int |
findIssuer(java.lang.String issuer)
Finds the record in the signing policy which deals with the specified
issuer.
|
int |
findIssuer(java.lang.String issuer,
int previous)
Finds the record in the signing policy which deals with the specified
issuer, starting from a specified record.
|
java.lang.String |
getAccessIDCA()
Gets the AccessIDCA from the current record.
|
java.util.Vector |
getCondSubjects()
Gets the CondSubjects from the current record.
|
java.lang.String |
getName()
Gets the basename of the file from which this was loaded.
|
java.lang.String |
getPosRights()
Gets the PosRights from the current record.
|
void |
setCurrent(int index)
Sets the indicate record as the current record.
|
public SigningPolicy(java.io.File f) throws java.io.IOException
f
- the File from which to load the Signing Policy.java.io.IOException
- if there have been problems loading the file.public java.lang.String getName()
public int findIssuer(java.lang.String issuer)
issuer
- an OpenSSL-style representation of the issuer.public int findIssuer(java.lang.String issuer, int previous)
issuer
- an OpenSSL-style representation of the issuer.previous
- the previous match, or -1 if ther was no previous match.public void setCurrent(int index)
index
- the record numberjava.lang.IllegalArgumentException
- if the record number is too great
or < 0.public java.lang.String getAccessIDCA()
java.lang.IllegalArgumentException
- if the record number has not been set.public java.lang.String getPosRights()
java.lang.IllegalArgumentException
- if the record number has not been set.public java.util.Vector getCondSubjects()
java.lang.IllegalArgumentException
- if the record number has not been set.Copyright © 2014. All Rights Reserved.