Interface OpenSslCredential
- All Superinterfaces:
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 ClassesModifier and TypeInterfaceDescriptionstatic enumThe type of SSL credential. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCheck if the credentials API is supported.retain()Increases the reference count by1.retain(int increment) Increases the reference count by the specifiedincrement.touch()Records the current access location of this object for debugging purposes.Records the current access location of this object with an additional arbitrary information for debugging purposes.type()Returns the type of this credential.Methods inherited from interface ReferenceCounted
refCnt, release, release
-
Method Details
-
isAvailable
static boolean isAvailable()Check if the credentials API is supported.- Returns:
trueif the credentials API is supported, otherwisefalse.
-
type
Returns the type of this credential.- Returns:
- the credential type
-
retain
OpenSslCredential retain()Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceReferenceCounted
-
retain
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceReferenceCounted
-
touch
OpenSslCredential touch()Description copied from interface:ReferenceCountedRecords the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector. This method is a shortcut totouch(null).- Specified by:
touchin interfaceReferenceCounted
-
touch
Description copied from interface:ReferenceCountedRecords the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector.- Specified by:
touchin interfaceReferenceCounted
-