作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.w3._2000._09.xmldsig_.X509DataType.getX509IssuerSerialOrX509SKIOrX509SubjectName()
方法的一些代码示例,展示了X509DataType.getX509IssuerSerialOrX509SKIOrX509SubjectName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X509DataType.getX509IssuerSerialOrX509SKIOrX509SubjectName()
方法的具体详情如下:
包路径:org.w3._2000.09.xmldsig.X509DataType
类名称:X509DataType
方法名:getX509IssuerSerialOrX509SKIOrX509SubjectName
暂无
代码示例来源: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
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
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
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);
我是一名优秀的程序员,十分优秀!