ServicesConstraint (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.crypto.constraints

## Class ServicesConstraint

- java.lang.Object
- - org.bouncycastle.crypto.constraints.ServicesConstraint

- All Implemented Interfaces:
    CryptoServicesConstraints
  Direct Known Subclasses:
    BitsOfSecurityConstraint, LegacyBitsOfSecurityConstraint, LoggingConstraint

      public abstract class ServicesConstraint
      extends java.lang.Object
      implements CryptoServicesConstraints

  Base class for a constraint, serves to provide storage for the set of exceptions (if any).

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static java.util.logging.Logger` | `LOG`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `ServicesConstraint(java.util.Set<java.lang.String> exceptions)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected boolean` | `isException(java.lang.String algorithm)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.bouncycastle.crypto.CryptoServicesConstraints

      `check`

- - ### Field Detail

    - #### LOG

          protected static final java.util.logging.Logger LOG

  - ### Constructor Detail

    - #### ServicesConstraint

          protected ServicesConstraint(java.util.Set<java.lang.String> exceptions)

  - ### Method Detail

    - #### isException

          protected boolean isException(java.lang.String algorithm)