本文整理汇总了Java中javax.xml.crypto.dsig.keyinfo.X509IssuerSerial类的典型用法代码示例。如果您正苦于以下问题:Java X509IssuerSerial类的具体用法?Java X509IssuerSerial怎么用?Java X509IssuerSerial使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
X509IssuerSerial类属于javax.xml.crypto.dsig.keyinfo包,在下文中一共展示了X509IssuerSerial类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: marshal
import javax.xml.crypto.dsig.keyinfo.X509IssuerSerial; //导入依赖的package包/类
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context)
throws MarshalException
{
Document ownerDoc = DOMUtils.getOwnerDocument(parent);
Element xdElem = DOMUtils.createElement(ownerDoc, "X509Data",
XMLSignature.XMLNS, dsPrefix);
// append children and preserve order
for (int i = 0, size = content.size(); i < size; i++) {
Object object = content.get(i);
if (object instanceof X509Certificate) {
marshalCert((X509Certificate)object,xdElem,ownerDoc,dsPrefix);
} else if (object instanceof XMLStructure) {
if (object instanceof X509IssuerSerial) {
((DOMX509IssuerSerial)object).marshal
(xdElem, dsPrefix, context);
} else {
javax.xml.crypto.dom.DOMStructure domContent =
(javax.xml.crypto.dom.DOMStructure)object;
DOMUtils.appendChild(xdElem, domContent.getNode());
}
} else if (object instanceof byte[]) {
marshalSKI((byte[])object, xdElem, ownerDoc, dsPrefix);
} else if (object instanceof String) {
marshalSubjectName((String)object, xdElem, ownerDoc,dsPrefix);
} else if (object instanceof X509CRL) {
marshalCRL((X509CRL)object, xdElem, ownerDoc, dsPrefix);
}
}
parent.appendChild(xdElem);
}
示例2: equals
import javax.xml.crypto.dsig.keyinfo.X509IssuerSerial; //导入依赖的package包/类
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof X509IssuerSerial)) {
return false;
}
X509IssuerSerial ois = (X509IssuerSerial)obj;
return (issuerName.equals(ois.getIssuerName()) &&
serialNumber.equals(ois.getSerialNumber()));
}
示例3: marshalX509IssuerSerial
import javax.xml.crypto.dsig.keyinfo.X509IssuerSerial; //导入依赖的package包/类
/**
* Marshals an {@link X509IssuerSerial}
*
* @param xwriter
* @param issuerSerial
* @param dsPrefix
*/
public static void marshalX509IssuerSerial(XmlWriter xwriter, X509IssuerSerial issuerSerial, String dsPrefix) {
xwriter.writeStartElement(dsPrefix, "X509IssuerSerial", XMLSignature.XMLNS);
xwriter.writeTextElement(dsPrefix, "X509IssuerName", XMLSignature.XMLNS,
issuerSerial.getIssuerName());
xwriter.writeTextElement(dsPrefix, "X509SerialNumber", XMLSignature.XMLNS,
issuerSerial.getSerialNumber().toString());
xwriter.writeEndElement(); // "X509IssuerSerial"
}
示例4: equals
import javax.xml.crypto.dsig.keyinfo.X509IssuerSerial; //导入依赖的package包/类
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof X509IssuerSerial)) {
return false;
}
X509IssuerSerial ois = (X509IssuerSerial)obj;
return issuerName.equals(ois.getIssuerName()) &&
serialNumber.equals(ois.getSerialNumber());
}
示例5: marshal
import javax.xml.crypto.dsig.keyinfo.X509IssuerSerial; //导入依赖的package包/类
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context)
throws MarshalException {
Document ownerDoc = DOMUtils.getOwnerDocument(parent);
Element xdElem = DOMUtils.createElement
(ownerDoc, "X509Data", XMLSignature.XMLNS, dsPrefix);
// append children and preserve order
for (int i = 0, size = content.size(); i < size; i++) {
Object object = content.get(i);
if (object instanceof X509Certificate) {
marshalCert((X509Certificate) object,xdElem,ownerDoc,dsPrefix);
} else if (object instanceof XMLStructure) {
if (object instanceof X509IssuerSerial) {
((DOMX509IssuerSerial) object).marshal
(xdElem, dsPrefix, context);
} else {
javax.xml.crypto.dom.DOMStructure domContent =
(javax.xml.crypto.dom.DOMStructure) object;
DOMUtils.appendChild(xdElem, domContent.getNode());
}
} else if (object instanceof byte[]) {
marshalSKI((byte[]) object, xdElem, ownerDoc, dsPrefix);
} else if (object instanceof String) {
marshalSubjectName((String) object, xdElem, ownerDoc,dsPrefix);
} else if (object instanceof X509CRL) {
marshalCRL((X509CRL) object, xdElem, ownerDoc, dsPrefix);
}
}
parent.appendChild(xdElem);
}
示例6: equals
import javax.xml.crypto.dsig.keyinfo.X509IssuerSerial; //导入依赖的package包/类
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof X509IssuerSerial)) {
return false;
}
X509IssuerSerial ois = (X509IssuerSerial) obj;
return (issuerName.equals(ois.getIssuerName()) &&
serialNumber.equals(ois.getSerialNumber()));
}
示例7: marshalObject
import javax.xml.crypto.dsig.keyinfo.X509IssuerSerial; //导入依赖的package包/类
@Override
public void marshalObject(XmlWriter xwriter, X509IssuerSerial toMarshal, String dsPrefix,
XMLCryptoContext context) throws MarshalException {
Marshaller.marshalX509IssuerSerial( xwriter, toMarshal, dsPrefix);
}