Interface OpenSslCredential

All Superinterfaces:
ReferenceCounted

public interface OpenSslCredential extends ReferenceCounted
Represents an OpenSSL/BoringSSL SSL_CREDENTIAL object.

SSL credentials provide a more flexible alternative to traditional certificate/key configuration, supporting features like:

  • Multiple credentials per context (e.g., RSA + ECDSA)
  • Delegated credentials
  • OCSP stapling per credential
  • Signed Certificate Timestamps (SCT)
  • Trust anchor identifiers
  • Per-credential signing algorithm preferences

This is a BoringSSL-specific feature. Use isAvailable() to check availability.

Instances are reference counted and must be released when no longer needed.

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The type of SSL credential.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Check if the credentials API is supported.
    Increases the reference count by 1.
    retain(int increment)
    Increases the reference count by the specified increment.
    Records the current access location of this object for debugging purposes.
    touch(Object hint)
    Records the current access location of this object with an additional arbitrary information for debugging purposes.
    Returns the type of this credential.

    Methods inherited from interface ReferenceCounted

    refCnt, release, release
    Modifier and Type
    Method
    Description
    int
    Returns the reference count of this object.
    boolean
    Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
    boolean
    release(int decrement)
    Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.