gpt4 book ai didi

org.w3._2000._09.xmldsig_.X509DataType类的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 22:08:40 29 4
gpt4 key购买 nike

本文整理了Java中org.w3._2000._09.xmldsig_.X509DataType类的一些代码示例,展示了X509DataType类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X509DataType类的具体详情如下:
包路径:org.w3._2000.09.xmldsig.X509DataType
类名称:X509DataType

X509DataType介绍

暂无

代码示例

代码示例来源:origin: no.difi.vefa/commons-busdox

/**
 * Create an instance of {@link X509DataType }
 * 
 */
public X509DataType createX509DataType() {
  return new X509DataType();
}

代码示例来源:origin: org.apache.juddi/juddi-core

List<Object> childKeyDataList = new ArrayList<Object>();
if (dataType.equals(X509DataType.class.getSimpleName())) {
    X509DataType x509DataType = new X509DataType();
    mapModelKeyDataValue(modelKeyDataValue.getKeyDataValueList(), childKeyDataList);
    x509DataType.getX509IssuerSerialOrX509SKIOrX509SubjectName().addAll(childKeyDataList);
    JAXBElement dataJAXB = new JAXBElement(new QName("http://www.w3.org/2000/09/xmldsig#", tagName), X509DataType.class, x509DataType);
    parentKeyDataList.add(dataJAXB);

代码示例来源:origin: org.apache.juddi/juddi-core

private static KeyDataValue mapX509DataType(JAXBElement apiKeyInfoContentJAXB, KeyInfo modelKeyInfo) throws RuntimeException {
    X509DataType apiKeyInfoContent = (X509DataType) apiKeyInfoContentJAXB.getValue();
    KeyDataValue modelX509KeyData = new KeyDataValue();
    modelX509KeyData.setKeyDataType(X509DataType.class.getSimpleName());
    modelX509KeyData.setKeyDataName(apiKeyInfoContentJAXB.getName().getLocalPart());
    modelX509KeyData.setKeyInfo(modelKeyInfo);
    List<Object> x509IssuerSerialOrX509SKIOrX509SubjectNameList = apiKeyInfoContent.getX509IssuerSerialOrX509SKIOrX509SubjectName();
    for (Object x509IssuerSerialOrX509SKIOrX509SubjectNameObj : x509IssuerSerialOrX509SKIOrX509SubjectNameList) {
        JAXBElement x509IssuerSerialOrX509SKIOrX509SubjectNameJAXB = (JAXBElement) x509IssuerSerialOrX509SKIOrX509SubjectNameObj;
        String tagName = x509IssuerSerialOrX509SKIOrX509SubjectNameJAXB.getName().getLocalPart();
        Object x509IssuerSerialOrX509SKIOrX509SubjectName = x509IssuerSerialOrX509SKIOrX509SubjectNameJAXB.getValue();
        KeyDataValue modelKeyInfoValue = new KeyDataValue();
        modelKeyInfoValue.setKeyDataName(tagName);
        if (x509IssuerSerialOrX509SKIOrX509SubjectName instanceof byte[]) {
            modelKeyInfoValue.setKeyDataValueBytes((byte[]) x509IssuerSerialOrX509SKIOrX509SubjectName);
        } else if (x509IssuerSerialOrX509SKIOrX509SubjectName instanceof String) {
            modelKeyInfoValue.setKeyDataValueString((String) x509IssuerSerialOrX509SKIOrX509SubjectName);
        } else if (x509IssuerSerialOrX509SKIOrX509SubjectName instanceof X509IssuerSerialType) {
            modelKeyInfoValue.setKeyDataType(X509IssuerSerialType.class.getSimpleName());
            X509IssuerSerialType x509IssuerSerialType = (X509IssuerSerialType) x509IssuerSerialOrX509SKIOrX509SubjectName;
            modelKeyInfoValue.setKeyDataValueString(x509IssuerSerialType.getX509IssuerName());
            modelKeyInfoValue.setKeyDataValueBytes(x509IssuerSerialType.getX509SerialNumber().toByteArray());
        } else if (x509IssuerSerialOrX509SKIOrX509SubjectName != null) {
            throw new RuntimeException("Unrecognized Value for Element: " + tagName + ": " + x509IssuerSerialOrX509SKIOrX509SubjectName.getClass().getCanonicalName());
        }
        modelKeyInfoValue.setKeyDataValue(modelX509KeyData);
        modelX509KeyData.getKeyDataValueList().add(modelKeyInfoValue);
    }
    return modelX509KeyData;
}

代码示例来源:origin: org.apache.juddi/juddi-core-openjpa

List<Object> childKeyDataList = new ArrayList<Object>();
if (dataType.equals(X509DataType.class.getSimpleName())) {
    X509DataType x509DataType = new X509DataType();
    mapModelKeyDataValue(modelKeyDataValue.getKeyDataValueList(), childKeyDataList);
    x509DataType.getX509IssuerSerialOrX509SKIOrX509SubjectName().addAll(childKeyDataList);
    JAXBElement dataJAXB = new JAXBElement(new QName("http://www.w3.org/2000/09/xmldsig#", tagName), X509DataType.class, x509DataType);
    parentKeyDataList.add(dataJAXB);

代码示例来源:origin: org.apache.juddi/juddi-core-openjpa

private static KeyDataValue mapX509DataType(JAXBElement apiKeyInfoContentJAXB, KeyInfo modelKeyInfo) throws RuntimeException {
    X509DataType apiKeyInfoContent = (X509DataType) apiKeyInfoContentJAXB.getValue();
    KeyDataValue modelX509KeyData = new KeyDataValue();
    modelX509KeyData.setKeyDataType(X509DataType.class.getSimpleName());
    modelX509KeyData.setKeyDataName(apiKeyInfoContentJAXB.getName().getLocalPart());
    modelX509KeyData.setKeyInfo(modelKeyInfo);
    List<Object> x509IssuerSerialOrX509SKIOrX509SubjectNameList = apiKeyInfoContent.getX509IssuerSerialOrX509SKIOrX509SubjectName();
    for (Object x509IssuerSerialOrX509SKIOrX509SubjectNameObj : x509IssuerSerialOrX509SKIOrX509SubjectNameList) {
        JAXBElement x509IssuerSerialOrX509SKIOrX509SubjectNameJAXB = (JAXBElement) x509IssuerSerialOrX509SKIOrX509SubjectNameObj;
        String tagName = x509IssuerSerialOrX509SKIOrX509SubjectNameJAXB.getName().getLocalPart();
        Object x509IssuerSerialOrX509SKIOrX509SubjectName = x509IssuerSerialOrX509SKIOrX509SubjectNameJAXB.getValue();
        KeyDataValue modelKeyInfoValue = new KeyDataValue();
        modelKeyInfoValue.setKeyDataName(tagName);
        if (x509IssuerSerialOrX509SKIOrX509SubjectName instanceof byte[]) {
            modelKeyInfoValue.setKeyDataValueBytes((byte[]) x509IssuerSerialOrX509SKIOrX509SubjectName);
        } else if (x509IssuerSerialOrX509SKIOrX509SubjectName instanceof String) {
            modelKeyInfoValue.setKeyDataValueString((String) x509IssuerSerialOrX509SKIOrX509SubjectName);
        } else if (x509IssuerSerialOrX509SKIOrX509SubjectName instanceof X509IssuerSerialType) {
            modelKeyInfoValue.setKeyDataType(X509IssuerSerialType.class.getSimpleName());
            X509IssuerSerialType x509IssuerSerialType = (X509IssuerSerialType) x509IssuerSerialOrX509SKIOrX509SubjectName;
            modelKeyInfoValue.setKeyDataValueString(x509IssuerSerialType.getX509IssuerName());
            modelKeyInfoValue.setKeyDataValueBytes(x509IssuerSerialType.getX509SerialNumber().toByteArray());
        } else if (x509IssuerSerialOrX509SKIOrX509SubjectName != null) {
            throw new RuntimeException("Unrecognized Value for Element: " + tagName + ": " + x509IssuerSerialOrX509SKIOrX509SubjectName.getClass().getCanonicalName());
        }
        modelKeyInfoValue.setKeyDataValue(modelX509KeyData);
        modelX509KeyData.getKeyDataValueList().add(modelKeyInfoValue);
    }
    return modelX509KeyData;
}

代码示例来源:origin: org.apache.juddi/uddi-ws

/**
 * Create an instance of {@link X509DataType }
 * 
 */
public X509DataType createX509DataType() {
  return new X509DataType();
}

代码示例来源:origin: no.difi.vefa/commons-bdxr

/**
 * Create an instance of {@link X509DataType }
 * 
 */
public X509DataType createX509DataType() {
  return new X509DataType();
}

代码示例来源:origin: Netflix/photon

/**
 * Create an instance of {@link X509DataType }
 * 
 */
public X509DataType createX509DataType() {
  return new X509DataType();
}

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com