|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.crypto.MultiCertPath
public class MultiCertPath
This class takes an array of CertPaths that is associated with a signed XML Document. A MultiCertPath is considered valid an verified if ONE CertPath in it is both.
Field Summary | |
---|---|
private CertPath[] |
m_certPaths
|
private int |
m_documentType
|
private X509DistinguishedName |
m_issuer
|
private X509DistinguishedName |
m_subject
|
static java.lang.String |
XML_ELEMENT_NAME
|
Fields inherited from interface anon.util.IXMLEncodable |
---|
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION |
Constructor Summary | |
---|---|
protected |
MultiCertPath(CertPath[] a_certPaths,
int a_documentType)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
protected MultiCertPath(CertPath[] a_certPaths, int a_documentType)
Method Detail |
---|
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 valid
a_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 document
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |