public class SigningPolicy extends Object
Constructor and Description |
---|
SigningPolicy(File f)
Loads a *.signing_policy file.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SigningPolicy(File f) throws IOException
f
- the File from which to load the Signing Policy.IOException
- if there have been problems loading the file.public String getName()
public int findIssuer(String issuer)
issuer
- an OpenSSL-style representation of the issuer.public int findIssuer(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 numberIllegalArgumentException
- if the record number is too great
or < 0.public String getAccessIDCA()
IllegalArgumentException
- if the record number has not been set.public String getPosRights()
IllegalArgumentException
- if the record number has not been set.public Vector getCondSubjects()
IllegalArgumentException
- if the record number has not been set.Copyright © 2014. All rights reserved.