public class TestletDataSet extends Set
TestletData used by ExtensionTester and
RevocationStore.| Constructor and Description |
|---|
TestletDataSet()
Creates a new
TestletDataSet. |
| Modifier and Type | Method and Description |
|---|---|
int |
getChainPosition()
Returns the current position in the certificate chain.
|
X509Certificate |
getTargetCertificate()
Returns the target of the certificate validation procedure.
|
TestletData |
getTestletData(ObjectID oid)
Returns the
TestletData for the specified object id or
null if none is found. |
addElement, apply, elements, getContentClass, getElements, intersect, removeAll, removeElement, size, substract, unionpublic TestletDataSet()
throws java.lang.ClassNotFoundException
TestletDataSet.java.lang.ClassNotFoundException - if the java virtual machine cannot find the class
com.entrust.toolkit.x509.testlets.TestletDatapublic TestletData getTestletData(ObjectID oid)
TestletData for the specified object id or
null if none is found.oid - the object id of the extension for which a
TestletData should be returned
Precondition:
Due toTestletData'sequalmethod, there are never two testlet datas with the same object id in the set.
oid; null if no testlet
data with the specified object id is stored in this setpublic X509Certificate getTargetCertificate()
null if the
target has not been set.public int getChainPosition()
CertTestlets can call this during the validate
procedure to determine where in the chain specified in the init
procedure the given certificate can be found. The position is 0-based, so
it can be used as an array index.