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

x33g5p2x  于2022-02-03 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(129)

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

X500AttributeTypeAndValue.encodeTo介绍

暂无

代码示例

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

public void encodeTo(final ASN1Encoder encoder) {
    encoder.encodeImplicit(1);
    encoder.startSet();
    for (X500AttributeTypeAndValue attribute : attributes) {
      attribute.encodeTo(encoder);
    }
    encoder.endSet();
  }
}

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

/**
   * Build the principal.  On return (with any outcome), this builder is re-set for building a new principal.
   *
   * @return the constructed principal (not {@code null})
   * @throws IllegalArgumentException if the principal is somehow invalid
   */
  public X500Principal build() throws IllegalArgumentException {
    final DEREncoder derEncoder = new DEREncoder();
    derEncoder.startSequence();
    for (Collection<X500AttributeTypeAndValue> itemSet : items) {
      derEncoder.startSet();
      for (X500AttributeTypeAndValue item : itemSet) {
        item.encodeTo(derEncoder);
      }
      derEncoder.endSet();
    }
    derEncoder.endSequence();
    return new X500Principal(derEncoder.getEncoded());
  }
}

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

public void encodeTo(final ASN1Encoder encoder) {
    encoder.encodeImplicit(1);
    encoder.startSet();
    for (X500AttributeTypeAndValue attribute : attributes) {
      attribute.encodeTo(encoder);
    }
    encoder.endSet();
  }
}

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

public void encodeTo(final ASN1Encoder encoder) {
    encoder.encodeImplicit(1);
    encoder.startSet();
    for (X500AttributeTypeAndValue attribute : attributes) {
      attribute.encodeTo(encoder);
    }
    encoder.endSet();
  }
}

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

public void encodeTo(final ASN1Encoder encoder) {
    encoder.encodeImplicit(1);
    encoder.startSet();
    for (X500AttributeTypeAndValue attribute : attributes) {
      attribute.encodeTo(encoder);
    }
    encoder.endSet();
  }
}

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

/**
   * Build the principal.  On return (with any outcome), this builder is re-set for building a new principal.
   *
   * @return the constructed principal (not {@code null})
   * @throws IllegalArgumentException if the principal is somehow invalid
   */
  public X500Principal build() throws IllegalArgumentException {
    final DEREncoder derEncoder = new DEREncoder();
    derEncoder.startSequence();
    for (Collection<X500AttributeTypeAndValue> itemSet : items) {
      derEncoder.startSet();
      for (X500AttributeTypeAndValue item : itemSet) {
        item.encodeTo(derEncoder);
      }
      derEncoder.endSet();
    }
    derEncoder.endSequence();
    return new X500Principal(derEncoder.getEncoded());
  }
}

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

/**
   * Build the principal.  On return (with any outcome), this builder is re-set for building a new principal.
   *
   * @return the constructed principal (not {@code null})
   * @throws IllegalArgumentException if the principal is somehow invalid
   */
  public X500Principal build() throws IllegalArgumentException {
    final DEREncoder derEncoder = new DEREncoder();
    derEncoder.startSequence();
    for (Collection<X500AttributeTypeAndValue> itemSet : items) {
      derEncoder.startSet();
      for (X500AttributeTypeAndValue item : itemSet) {
        item.encodeTo(derEncoder);
      }
      derEncoder.endSet();
    }
    derEncoder.endSequence();
    return new X500Principal(derEncoder.getEncoded());
  }
}

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

/**
   * Build the principal.  On return (with any outcome), this builder is re-set for building a new principal.
   *
   * @return the constructed principal (not {@code null})
   * @throws IllegalArgumentException if the principal is somehow invalid
   */
  public X500Principal build() throws IllegalArgumentException {
    final DEREncoder derEncoder = new DEREncoder();
    derEncoder.startSequence();
    for (Collection<X500AttributeTypeAndValue> itemSet : items) {
      derEncoder.startSet();
      for (X500AttributeTypeAndValue item : itemSet) {
        item.encodeTo(derEncoder);
      }
      derEncoder.endSet();
    }
    derEncoder.endSequence();
    return new X500Principal(derEncoder.getEncoded());
  }
}

相关文章