Top Description Constructors Methods
com.ongres.scram.common.bouncycastle.pbkdf2

public final Class Arrays

extends Object
Class Inheritance

General array utilities.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static byte[]

Returns:

a new byte array containing the range given.
copyOfRange
(byte[]
the array from which the data is to be copied.
data
,
int
the start index at which the copying should take place.
from
,
int
the final index of the range (exclusive).
to
)

Make a copy of a range of bytes from the passed in data array.

private static int
getLength(int from, int to)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Arraysback to summary
private Arrays()

Method Detail

copyOfRangeback to summary
public static byte[] copyOfRange(byte[] data, int from, int to)

Make a copy of a range of bytes from the passed in data array. The range can extend beyond the end of the input array, in which case the return array will be padded with zeroes.

Parameters
data:byte[]

the array from which the data is to be copied.

from:int

the start index at which the copying should take place.

to:int

the final index of the range (exclusive).

Returns:byte[]

a new byte array containing the range given.

getLengthback to summary
private static int getLength(int from, int to)