Interface OAuth2Settings.TlsSettings<T>
- Type Parameters:
T- the type of object returned by methods, usually the object itself
- Enclosing interface:
OAuth2Settings<T>
public static interface OAuth2Settings.TlsSettings<T>
TLS settings to request the OAuth 2 token.
- Since:
- 0.4.0
-
Method Summary
Modifier and TypeMethodDescriptionTLS cipher suites for HTTPS requests.namedGroups(String... namedGroups) TLS named groups (key exchange groups) for HTTPS requests.oauth2()Go back to the general OAuth 2 settings.sslContext(SSLContext sslContext) SSLContextfor HTTPS requests.
-
Method Details
-
sslContext
SSLContextfor HTTPS requests.- Parameters:
sslContext- the SSL context- Returns:
- TLS settings
-
namedGroups
TLS named groups (key exchange groups) for HTTPS requests.Use this to select post-quantum or hybrid post-quantum key exchange, e.g.
X25519MLKEM768. RequiressslContext(javax.net.ssl.SSLContext)to be set, and Java 20 or more.- Parameters:
namedGroups- the named groups, in order of preference- Returns:
- TLS settings
- Since:
- 1.6.0
-
ciphers
TLS cipher suites for HTTPS requests.Note this does not affect the key exchange algorithm with TLS 1.3, see
namedGroups(String...)for post-quantum key exchange. RequiressslContext(javax.net.ssl.SSLContext)to be set.- Parameters:
ciphers- the cipher suites, in order of preference- Returns:
- TLS settings
- Since:
- 1.6.0
-
oauth2
-