当前位置: 首页>>代码示例>>Java>>正文


Java X509IssuerSerial类代码示例

本文整理汇总了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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:33,代码来源:DOMX509Data.java

示例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()));
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:DOMX509IssuerSerial.java

示例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"
}
 
开发者ID:Legostaev,项目名称:xmlsec-gost,代码行数:18,代码来源:Marshaller.java

示例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());
}
 
开发者ID:Legostaev,项目名称:xmlsec-gost,代码行数:13,代码来源:DOMX509IssuerSerial.java

示例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);
}
 
开发者ID:openjdk,项目名称:jdk7-jdk,代码行数:33,代码来源:DOMX509Data.java

示例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()));
}
 
开发者ID:openjdk,项目名称:jdk7-jdk,代码行数:12,代码来源:DOMX509IssuerSerial.java

示例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);
}
 
开发者ID:Legostaev,项目名称:xmlsec-gost,代码行数:6,代码来源:Marshaller.java


注:本文中的javax.xml.crypto.dsig.keyinfo.X509IssuerSerial类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。