gpt4 book ai didi

org.wildfly.security.x500.X500AttributeTypeAndValue.create()方法的使用及代码示例

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

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

X500AttributeTypeAndValue.create介绍

[英]Construct a new instance with the given value.
[中]用给定的值构造一个新实例。

代码示例

代码示例来源:origin: wildfly/wildfly

/**
 * Construct a new instance with an OID value.
 *
 * @param attributeType the attribute type OID (must not be {@code null})
 * @param oid the OID (must not be {@code null})
 * @return the directory attribute
 */
public static X500AttributeTypeAndValue createObjectId(final String attributeType, String oid) {
  return create(attributeType, ASN1Encodable.ofOid(oid));
}

代码示例来源:origin: wildfly/wildfly

/**
 * Construct a new instance with a UTF-8 value.
 *
 * @param attributeType the attribute type OID (must not be {@code null})
 * @param stringValue the string value (must not be {@code null})
 * @return the directory attribute
 */
public static X500AttributeTypeAndValue createUtf8(final String attributeType, String stringValue) {
  Assert.checkNotNullParam("stringValue", stringValue);
  return create(attributeType, ASN1Encodable.ofUtf8String(stringValue));
}

代码示例来源:origin: wildfly/wildfly

principalBuilder.addItem(X500AttributeTypeAndValue.create(X500.OID_AT_COMMON_NAME, ASN1Encodable.ofUtf8String(ACCOUNT_KEY_NAME)));
dn = principalBuilder.build();

代码示例来源:origin: wildfly/wildfly

principalBuilder.addItem(X500AttributeTypeAndValue.create(X500.OID_AT_COMMON_NAME, ASN1Encodable.ofUtf8String(((GeneralName.DNSName) generalNames.get(0)).getName())));
X500Principal dn = principalBuilder.build();
if (keyAlgorithmName == null) {

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * Construct a new instance with an OID value.
 *
 * @param attributeType the attribute type OID (must not be {@code null})
 * @param oid the OID (must not be {@code null})
 * @return the directory attribute
 */
public static X500AttributeTypeAndValue createObjectId(final String attributeType, String oid) {
  return create(attributeType, ASN1Encodable.ofOid(oid));
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

/**
 * Construct a new instance with an OID value.
 *
 * @param attributeType the attribute type OID (must not be {@code null})
 * @param oid the OID (must not be {@code null})
 * @return the directory attribute
 */
public static X500AttributeTypeAndValue createObjectId(final String attributeType, String oid) {
  return create(attributeType, ASN1Encodable.ofOid(oid));
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-x500

/**
 * Construct a new instance with an OID value.
 *
 * @param attributeType the attribute type OID (must not be {@code null})
 * @param oid the OID (must not be {@code null})
 * @return the directory attribute
 */
public static X500AttributeTypeAndValue createObjectId(final String attributeType, String oid) {
  return create(attributeType, ASN1Encodable.ofOid(oid));
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

/**
 * Construct a new instance with a UTF-8 value.
 *
 * @param attributeType the attribute type OID (must not be {@code null})
 * @param stringValue the string value (must not be {@code null})
 * @return the directory attribute
 */
public static X500AttributeTypeAndValue createUtf8(final String attributeType, String stringValue) {
  Assert.checkNotNullParam("stringValue", stringValue);
  return create(attributeType, ASN1Encodable.ofUtf8String(stringValue));
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-x500

/**
 * Construct a new instance with a UTF-8 value.
 *
 * @param attributeType the attribute type OID (must not be {@code null})
 * @param stringValue the string value (must not be {@code null})
 * @return the directory attribute
 */
public static X500AttributeTypeAndValue createUtf8(final String attributeType, String stringValue) {
  Assert.checkNotNullParam("stringValue", stringValue);
  return create(attributeType, ASN1Encodable.ofUtf8String(stringValue));
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * Construct a new instance with a UTF-8 value.
 *
 * @param attributeType the attribute type OID (must not be {@code null})
 * @param stringValue the string value (must not be {@code null})
 * @return the directory attribute
 */
public static X500AttributeTypeAndValue createUtf8(final String attributeType, String stringValue) {
  Assert.checkNotNullParam("stringValue", stringValue);
  return create(attributeType, ASN1Encodable.ofUtf8String(stringValue));
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

principalBuilder.addItem(X500AttributeTypeAndValue.create(X500.OID_AT_COMMON_NAME, ASN1Encodable.ofUtf8String(ACCOUNT_KEY_NAME)));
dn = principalBuilder.build();

代码示例来源:origin: org.wildfly.security/wildfly-elytron-x500-cert-acme

principalBuilder.addItem(X500AttributeTypeAndValue.create(X500.OID_AT_COMMON_NAME, ASN1Encodable.ofUtf8String(ACCOUNT_KEY_NAME)));
dn = principalBuilder.build();

代码示例来源:origin: org.jboss.eap/wildfly-client-all

principalBuilder.addItem(X500AttributeTypeAndValue.create(X500.OID_AT_COMMON_NAME, ASN1Encodable.ofUtf8String(ACCOUNT_KEY_NAME)));
dn = principalBuilder.build();

代码示例来源:origin: org.wildfly.security/wildfly-elytron

principalBuilder.addItem(X500AttributeTypeAndValue.create(X500.OID_AT_COMMON_NAME, ASN1Encodable.ofUtf8String(((GeneralName.DNSName) generalNames.get(0)).getName())));
X500Principal dn = principalBuilder.build();
if (keyAlgorithmName == null) {

代码示例来源:origin: org.jboss.eap/wildfly-client-all

principalBuilder.addItem(X500AttributeTypeAndValue.create(X500.OID_AT_COMMON_NAME, ASN1Encodable.ofUtf8String(((GeneralName.DNSName) generalNames.get(0)).getName())));
X500Principal dn = principalBuilder.build();
if (keyAlgorithmName == null) {

代码示例来源:origin: org.wildfly.security/wildfly-elytron-x500-cert-acme

principalBuilder.addItem(X500AttributeTypeAndValue.create(X500.OID_AT_COMMON_NAME, ASN1Encodable.ofUtf8String(((GeneralName.DNSName) generalNames.get(0)).getName())));
X500Principal dn = principalBuilder.build();
if (keyAlgorithmName == null) {

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