Package io.netty.handler.ssl
Interface OpenSslCredential
-
- All Superinterfaces:
io.netty.util.ReferenceCounted
public interface OpenSslCredential extends io.netty.util.ReferenceCountedRepresents 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()OpenSslCredentialretain(int increment)OpenSslCredentialtouch()OpenSslCredentialtouch(Object hint)OpenSslCredential.CredentialTypetype()Returns the type of this credential.
-
-
-
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()
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
OpenSslCredential retain(int increment)
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
touch
OpenSslCredential touch()
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
OpenSslCredential touch(Object hint)
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
-