Package io.netty.handler.ssl
Interface OpenSslCredential
-
- All Superinterfaces:
ReferenceCounted
public interface OpenSslCredential extends ReferenceCounted
Represents an OpenSSL/BoringSSLSSL_CREDENTIALobject.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:
- BoringSSL SSL_CREDENTIAL Documentation
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classOpenSslCredential.CredentialTypeThe type of SSL credential.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static booleanisAvailable()Check if the credentials API is supported.OpenSslCredentialretain()Increases the reference count by1.OpenSslCredentialretain(int increment)Increases the reference count by the specifiedincrement.OpenSslCredentialtouch()Records the current access location of this object for debugging purposes.OpenSslCredentialtouch(java.lang.Object hint)Records the current access location of this object with an additional arbitrary information for debugging purposes.OpenSslCredential.CredentialTypetype()Returns the type of this credential.-
Methods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
-
-
-
-
Method Detail
-
isAvailable
static boolean isAvailable()
Check if the credentials API is supported.- Returns:
trueif the credentials API is supported, otherwisefalse.
-
type
OpenSslCredential.CredentialType 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
OpenSslCredential retain(int increment)
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
OpenSslCredential touch(java.lang.Object hint)
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
-
-