org.bouncycastle.util (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

# Package org.bouncycastle.util

General purpose utility classes used throughout the APIs.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  Encodable | Interface implemented by objects that can be converted into byte arrays.
  Iterable<T> | Utility class to allow use of Iterable feature in JDK 1.5+
  Memoable | Interface for Memoable objects.
  Selector<T> | Interface a selector from a store should conform to.
  Store<T> | A generic interface describing a simple store of objects.
  StreamParser |
  StringList | An interface defining a list of strings.

- Class Summary
  Class | Description
  --- | ---
  Arrays | General array utilities.
  Arrays.Iterator<T> | Iterator backed by a specific array.
  BigIntegers | BigInteger utilities.
  BigIntegers.Cache |
  Bytes | Utility methods and constants for bytes.
  Characters |
  CollectionStore<T> | A simple collection backed store.
  Doubles |
  Exceptions |
  Fingerprint | Basic 20 byte finger print class.
  GF16 | Deprecated moved to `GF16`; this type now delegates there and will be removed in a future release.
  Integers | Utility methods and constants for ints.
  IPAddress | Utility methods for processing String objects containing IP addresses.
  Longs | Utility methods and constants for longs.
  Objects |
  Pack | Utility methods for converting byte arrays into ints and longs, and back again.
  Properties | Utility method for accessing properties values - properties can be set in java.security, thread local, and system properties.
  Shorts | Utility methods and constants for shorts.
  Strings | String utilities.
  Times |

- Exception Summary
  Exception | Description
  --- | ---
  AggregateRuntimeException | A `RuntimeException` that carries several underlying exceptions rather than a single cause - for example the complete set of problems found when reviewing a malformed structure, where surfacing only the first would lose information.
  MemoableResetException | Exception to be thrown on a failure to reset an object implementing Memoable.
  StoreException | Exception thrown if there's an issue doing a match in store.
  StreamParsingException |

## Package org.bouncycastle.util Description

General purpose utility classes used throughout the APIs.