public class MultiCertPath extends java.lang.Object implements IXMLEncodable
Modifier and Type | Field and Description |
---|---|
private CertPath[] |
m_certPaths |
private int |
m_documentType |
private X509DistinguishedName |
m_issuer |
private X509DistinguishedName |
m_subject |
static java.lang.String |
XML_ELEMENT_NAME |
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Modifier | Constructor and Description |
---|---|
protected |
MultiCertPath(CertPath[] a_certPaths,
int a_documentType) |
Modifier and Type | Method and Description |
---|---|
int |
countPaths()
Returns the number of CertPaths in this MultCertPath
|
int |
countVerifiedAndValidPaths()
Returns the number of paths that are verified and timely valid.
|
int |
countVerifiedPaths()
Returns the number of verified CertPaths in this MultCertPath
|
java.util.Vector |
getEndEntityKeys()
Gets all successfully verified end entity Keys from this MultiCertPath.
|
CertPath |
getFirstVerifiedPath()
Gets the first verified CertPath of this MultiCertPath.
|
X509DistinguishedName |
getIssuer()
Returns this MultiCertPaths Issuer which is the same for all end-entity certs
|
int |
getMaxLength() |
CertPath |
getPath()
Tries to return the first verified CertPath.
|
CertPathInfo[] |
getPathInfos() |
java.util.Vector |
getPaths()
Returns all CertPath objects, no matter if verified or not.
|
X509DistinguishedName |
getSubject()
Returns this MultiCertPath's Subject which is the same for all end-entity certs
|
boolean |
isValid(java.util.Date a_date)
Returns
true if one verifiable path is valid or
in case there is no verifiable path, one unverifiable path is valid |
boolean |
isVerified()
At the moment we try to find a single verifiable CertPath and return
true if there is one, or if signature verification is disabled. |
private boolean |
needsVerification()
Check if the documentType that is associated with this MultiCertPath
needs signature verification.
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document.
|
public static final java.lang.String XML_ELEMENT_NAME
private CertPath[] m_certPaths
private X509DistinguishedName m_subject
private X509DistinguishedName m_issuer
private int m_documentType
protected MultiCertPath(CertPath[] a_certPaths, int a_documentType)
public boolean isValid(java.util.Date a_date)
true
if one verifiable path is valid or
in case there is no verifiable path, one unverifiable path is valida_date
- private boolean needsVerification()
true
if the MultiCertPath has to be verifiedpublic boolean isVerified()
true
if there is one, or if signature verification is disabled.public CertPath getPath()
public java.util.Vector getPaths()
public CertPath getFirstVerifiedPath()
public java.util.Vector getEndEntityKeys()
KeyExchangeManager
public X509DistinguishedName getSubject()
public X509DistinguishedName getIssuer()
public int countPaths()
public int countVerifiedPaths()
public int countVerifiedAndValidPaths()
public int getMaxLength()
public CertPathInfo[] getPathInfos()
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodable
toXmlElement
in interface IXMLEncodable
a_doc
- a documentCopyright © 2023. All rights reserved.