org.apache.commons.codec.binary.Base64.toIntegerBytes()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(147)

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

Base64.toIntegerBytes介绍

[英]Returns a byte-array representation of a BigInteger without sign bit.
[中]返回不带符号位的BigInteger的字节数组表示形式。

代码示例

代码示例来源:origin: commons-codec/commons-codec

/**
 * Encodes to a byte64-encoded integer according to crypto standards such as W3C's XML-Signature.
 *
 * @param bigInt
 *            a BigInteger
 * @return A byte array containing base64 character data
 * @throws NullPointerException
 *             if null is passed in
 * @since 1.4
 */
public static byte[] encodeInteger(final BigInteger bigInt) {
  if (bigInt == null) {
    throw new NullPointerException("encodeInteger called with null parameter");
  }
  return encodeBase64(toIntegerBytes(bigInt), false);
}

代码示例来源:origin: ibinti/bugvm

/**
 * Encodes to a byte64-encoded integer according to crypto standards such as W3C's XML-Signature.
 *
 * @param bigInt
 *            a BigInteger
 * @return A byte array containing base64 character data
 * @throws NullPointerException
 *             if null is passed in
 * @since 1.4
 */
public static byte[] encodeInteger(final BigInteger bigInt) {
  if (bigInt == null) {
    throw new NullPointerException("encodeInteger called with null parameter");
  }
  return encodeBase64(toIntegerBytes(bigInt), false);
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Encodes to a byte64-encoded integer according to crypto standards such as W3C's XML-Signature.
 *
 * @param bigInt
 *            a BigInteger
 * @return A byte array containing base64 character data
 * @throws NullPointerException
 *             if null is passed in
 * @since 1.4
 */
public static byte[] encodeInteger(final BigInteger bigInt) {
  if (bigInt == null) {
    throw new NullPointerException("encodeInteger called with null parameter");
  }
  return encodeBase64(toIntegerBytes(bigInt), false);
}

代码示例来源:origin: Nextdoor/bender

/**
 * Encodes to a byte64-encoded integer according to crypto standards such as W3C's XML-Signature
 *
 * @param bigInt
 *            a BigInteger
 * @return A byte array containing base64 character data
 * @throws NullPointerException
 *             if null is passed in
 * @since 1.4
 */
public static byte[] encodeInteger(final BigInteger bigInt) {
  if (bigInt == null) {
    throw new NullPointerException("encodeInteger called with null parameter");
  }
  return encodeBase64(toIntegerBytes(bigInt), false);
}

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

/**
 * Encodes to a byte64-encoded integer according to crypto standards such as W3C's XML-Signature.
 *
 * @param bigInt
 *            a BigInteger
 * @return A byte array containing base64 character data
 * @throws NullPointerException
 *             if null is passed in
 * @since 1.4
 */
public static byte[] encodeInteger(final BigInteger bigInt) {
  if (bigInt == null) {
    throw new NullPointerException("encodeInteger called with null parameter");
  }
  return encodeBase64(toIntegerBytes(bigInt), false);
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Encodes to a byte64-encoded integer according to crypto standards such as W3C's XML-Signature.
 *
 * @param bigInt
 *            a BigInteger
 * @return A byte array containing base64 character data
 * @throws NullPointerException
 *             if null is passed in
 * @since 1.4
 */
public static byte[] encodeInteger(final BigInteger bigInt) {
  if (bigInt == null) {
    throw new NullPointerException("encodeInteger called with null parameter");
  }
  return encodeBase64(toIntegerBytes(bigInt), false);
}

相关文章