Methods Summary |
---|
public void | add(com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509SubjectName xmlX509SubjectName)Method add
if (this._state == MODE_SIGN) {
this._constructionElement.appendChild(xmlX509SubjectName.getElement());
XMLUtils.addReturnToElement(this._constructionElement);
}
|
public void | add(com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509Certificate xmlX509Certificate)Method add
if (this._state == MODE_SIGN) {
this._constructionElement.appendChild(xmlX509Certificate.getElement());
XMLUtils.addReturnToElement(this._constructionElement);
}
|
public void | add(com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509CRL xmlX509CRL)Method add
if (this._state == MODE_SIGN) {
this._constructionElement.appendChild(xmlX509CRL.getElement());
XMLUtils.addReturnToElement(this._constructionElement);
}
|
public void | add(com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509IssuerSerial xmlX509IssuerSerial)Method add
if (this._state == MODE_SIGN) {
this._constructionElement
.appendChild(xmlX509IssuerSerial.getElement());
XMLUtils.addReturnToElement(this._constructionElement);
}
|
public void | add(com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509SKI xmlX509SKI)Method add
if (this._state == MODE_SIGN) {
this._constructionElement.appendChild(xmlX509SKI.getElement());
XMLUtils.addReturnToElement(this._constructionElement);
}
|
public void | addCRL(byte[] crlBytes)Method addCRL
this.add(new XMLX509CRL(this._doc, crlBytes));
|
public void | addCertificate(java.security.cert.X509Certificate x509certificate)Method addCertificate
this.add(new XMLX509Certificate(this._doc, x509certificate));
|
public void | addCertificate(byte[] x509certificateBytes)Method addCertificate
this.add(new XMLX509Certificate(this._doc, x509certificateBytes));
|
public void | addIssuerSerial(java.lang.String X509IssuerName, java.math.BigInteger X509SerialNumber)Method addIssuerSerial
this.add(new XMLX509IssuerSerial(this._doc, X509IssuerName,
X509SerialNumber));
|
public void | addIssuerSerial(java.lang.String X509IssuerName, java.lang.String X509SerialNumber)Method addIssuerSerial
this.add(new XMLX509IssuerSerial(this._doc, X509IssuerName,
X509SerialNumber));
|
public void | addIssuerSerial(java.lang.String X509IssuerName, int X509SerialNumber)Method addIssuerSerial
this.add(new XMLX509IssuerSerial(this._doc, X509IssuerName,
X509SerialNumber));
|
public void | addSKI(byte[] skiBytes)Method addSKI
this.add(new XMLX509SKI(this._doc, skiBytes));
|
public void | addSKI(java.security.cert.X509Certificate x509certificate)Method addSKI
this.add(new XMLX509SKI(this._doc, x509certificate));
|
public void | addSubjectName(java.lang.String subjectName)Method addSubjectName
this.add(new XMLX509SubjectName(this._doc, subjectName));
|
public void | addSubjectName(java.security.cert.X509Certificate x509certificate)Method addSubjectName
this.add(new XMLX509SubjectName(this._doc, x509certificate));
|
public void | addUnknownElement(org.w3c.dom.Element element)Method addUnknownElement
if (this._state == MODE_SIGN) {
this._constructionElement.appendChild(element);
XMLUtils.addReturnToElement(this._constructionElement);
}
|
public boolean | containsCRL()Method containsCRL
return this.lengthCRL() > 0;
|
public boolean | containsCertificate()Method containsCertificate
return this.lengthCertificate() > 0;
|
public boolean | containsIssuerSerial()Method containsIssuerSerial
return this.lengthIssuerSerial() > 0;
|
public boolean | containsSKI()Method containsSKI
return this.lengthSKI() > 0;
|
public boolean | containsSubjectName()Method containsSubjectName
return this.lengthSubjectName() > 0;
|
public boolean | containsUnknownElement()Method containsUnknownElement
return this.lengthUnknownElement() > 0;
|
public java.lang.String | getBaseLocalName()
return Constants._TAG_X509DATA;
|
public com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509CRL | itemCRL(int i)Method itemCRL
Element e = XMLUtils.selectDsNode(this._constructionElement.getFirstChild(),
Constants._TAG_X509CRL,i);
if (e != null) {
return new XMLX509CRL(e, this._baseURI);
}
return null;
|
public com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509Certificate | itemCertificate(int i)Method itemCertificate
Element e = XMLUtils.selectDsNode(this._constructionElement.getFirstChild(),
Constants._TAG_X509CERTIFICATE,i);
if (e != null) {
return new XMLX509Certificate(e, this._baseURI);
}
return null;
|
public com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509IssuerSerial | itemIssuerSerial(int i)Method itemIssuerSerial
Element e =
XMLUtils.selectDsNode(this._constructionElement.getFirstChild(),
Constants._TAG_X509ISSUERSERIAL,i);
if (e != null) {
return new XMLX509IssuerSerial(e, this._baseURI);
}
return null;
|
public com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509SKI | itemSKI(int i)Method itemSKI
Element e = XMLUtils.selectDsNode(this._constructionElement.getFirstChild(),
Constants._TAG_X509SKI,i);
if (e != null) {
return new XMLX509SKI(e, this._baseURI);
}
return null;
|
public com.sun.org.apache.xml.internal.security.keys.content.x509.XMLX509SubjectName | itemSubjectName(int i)Method itemSubjectName
Element e = XMLUtils.selectDsNode(this._constructionElement.getFirstChild(),
Constants._TAG_X509SUBJECTNAME,i);
if (e != null) {
return new XMLX509SubjectName(e, this._baseURI);
}
return null;
|
public org.w3c.dom.Element | itemUnknownElement(int i)Method itemUnknownElement
if (log.isLoggable(java.util.logging.Level.FINE)) log.log(java.util.logging.Level.FINE, "itemUnknownElement not implemented:"+i);
return null;
|
public int | lengthCRL()Method lengthCRL
return this.length(Constants.SignatureSpecNS, Constants._TAG_X509CRL);
|
public int | lengthCertificate()Method lengthCertificate
return this.length(Constants.SignatureSpecNS,
Constants._TAG_X509CERTIFICATE);
|
public int | lengthIssuerSerial()Method lengthIssuerSerial
return this.length(Constants.SignatureSpecNS,
Constants._TAG_X509ISSUERSERIAL);
|
public int | lengthSKI()Method lengthSKI
return this.length(Constants.SignatureSpecNS, Constants._TAG_X509SKI);
|
public int | lengthSubjectName()Method lengthSubjectName
return this.length(Constants.SignatureSpecNS,
Constants._TAG_X509SUBJECTNAME);
|
public int | lengthUnknownElement()Method lengthUnknownElement
int result = 0;
Node n=this._constructionElement.getFirstChild();
while (n!=null){
if ((n.getNodeType() == Node.ELEMENT_NODE)
&&!n.getNamespaceURI().equals(Constants.SignatureSpecNS)) {
result += 1;
}
n=n.getNextSibling();
}
return result;
|