Top Constructors Methods
org.bouncycastle.pqc.legacy.math.linearalgebra

public final Class CharUtils

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
private
CharUtils()

Default constructor (private)

Method Summary

Modifier and TypeMethod and Description
public static char[]

Returns:

the clone of the given array
clone
(char[]
the array to clone
array
)

Return a clone of the given char array.

public static boolean

Returns:

the result of the comparison
equals
(char[]
the char byte array
left
,
char[]
the second char array
right
)

Compare two char arrays.

public static byte[]

Returns:

the converted array
toByteArray
(char[]
the char array
chars
)

Convert the given char array into a byte array.

public static byte[]

Returns:

the converted array
toByteArrayForPBE
(char[]
the char array
chars
)

Convert the given char array into a byte array for use with PBE encryption.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CharUtilsback to summary
private CharUtils()

Default constructor (private)

Method Detail

cloneback to summary
public static char[] clone(char[] array)

Return a clone of the given char array. No null checks are performed.

Parameters
array:char[]

the array to clone

Returns:char[]

the clone of the given array

equalsback to summary
public static boolean equals(char[] left, char[] right)

Compare two char arrays. No null checks are performed.

Parameters
left:char[]

the char byte array

right:char[]

the second char array

Returns:boolean

the result of the comparison

toByteArrayback to summary
public static byte[] toByteArray(char[] chars)

Convert the given char array into a byte array.

Parameters
chars:char[]

the char array

Returns:byte[]

the converted array

toByteArrayForPBEback to summary
public static byte[] toByteArrayForPBE(char[] chars)

Convert the given char array into a byte array for use with PBE encryption.

Parameters
chars:char[]

the char array

Returns:byte[]

the converted array