public class OAuth2ClientOptions extends HttpClientOptions
HttpClient
will make connections.DEFAULT_ALPN_VERSIONS, DEFAULT_DECODER_INITIAL_BUFFER_SIZE, DEFAULT_DEFAULT_HOST, DEFAULT_DEFAULT_PORT, DEFAULT_FORCE_SNI, DEFAULT_HTTP2_CLEAR_TEXT_UPGRADE, DEFAULT_HTTP2_CONNECTION_WINDOW_SIZE, DEFAULT_HTTP2_KEEP_ALIVE_TIMEOUT, DEFAULT_HTTP2_MAX_POOL_SIZE, DEFAULT_HTTP2_MULTIPLEXING_LIMIT, DEFAULT_KEEP_ALIVE, DEFAULT_KEEP_ALIVE_TIMEOUT, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_HEADER_SIZE, DEFAULT_MAX_INITIAL_LINE_LENGTH, DEFAULT_MAX_POOL_SIZE, DEFAULT_MAX_REDIRECTS, DEFAULT_MAX_WAIT_QUEUE_SIZE, DEFAULT_MAX_WEBSOCKET_FRAME_SIZE, DEFAULT_MAX_WEBSOCKET_MESSAGE_SIZE, DEFAULT_PIPELINING, DEFAULT_PIPELINING_LIMIT, DEFAULT_POOL_CLEANER_PERIOD, DEFAULT_PROTOCOL_VERSION, DEFAULT_SEND_UNMASKED_FRAMES, DEFAULT_TRY_USE_COMPRESSION, DEFAULT_TRY_USE_PER_FRAME_WEBSOCKET_COMPRESSION, DEFAULT_TRY_USE_PER_MESSAGE_WEBSOCKET_COMPRESSION, DEFAULT_VERIFY_HOST, DEFAULT_WEBSOCKET_ALLOW_CLIENT_NO_CONTEXT, DEFAULT_WEBSOCKET_CLOSING_TIMEOUT, DEFAULT_WEBSOCKET_COMPRESSION_LEVEL, DEFAULT_WEBSOCKET_REQUEST_SERVER_NO_CONTEXT
DEFAULT_CONNECT_TIMEOUT, DEFAULT_METRICS_NAME, DEFAULT_TRUST_ALL
DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS, DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_TIME_UNIT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_SSL_HANDSHAKE_TIMEOUT, DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT, DEFAULT_TCP_CORK, DEFAULT_TCP_FAST_OPEN, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_TCP_QUICKACK, DEFAULT_TCP_USER_TIMEOUT, DEFAULT_USE_ALPN, DEFAULT_USE_POOLED_BUFFERS
DEFAULT_LOG_ENABLED, DEFAULT_RECEIVE_BUFFER_SIZE, DEFAULT_REUSE_ADDRESS, DEFAULT_REUSE_PORT, DEFAULT_SEND_BUFFER_SIZE, DEFAULT_TRAFFIC_CLASS
Constructor and Description |
---|
OAuth2ClientOptions()
Default constructor
|
OAuth2ClientOptions(HttpClientOptions other)
Copy constructor
|
OAuth2ClientOptions(JsonObject json)
Constructor to create an options from JSON
|
OAuth2ClientOptions(OAuth2ClientOptions other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
OAuth2ClientOptions |
addPubSecKey(PubSecKeyOptions pubSecKey) |
String |
getAuthorizationPath()
Get the Oauth2 authorization resource path.
|
String |
getClientID()
Get the provider client id
|
String |
getClientSecret()
Get the provider client secret
|
String |
getClientSecretParameterName()
When a provider uses a non standard HTTP form field name, the client secret can be overriden here.
|
JsonObject |
getExtraParameters()
Extra parameters to send to the provider
|
OAuth2FlowType |
getFlow() |
JsonObject |
getHeaders()
Custom headers to send along with every request.
|
String |
getIntrospectionPath()
The provider token introspection resource path
|
String |
getJwkPath() |
JWTOptions |
getJWTOptions() |
String |
getLogoutPath()
The provider logout path
|
List<PubSecKeyOptions> |
getPubSecKeys()
The provider PubSec key options
|
String |
getRevocationPath()
Get the Oauth2 revocation resource path.
|
String |
getScopeSeparator()
Deprecated.
|
String |
getSite() |
String |
getTokenPath()
Get the Oauth2 token resource path.
|
String |
getUserAgent()
The User-Agent header to use when communicating with a provider
|
JsonObject |
getUserInfoParameters()
Set the provider custom userInfo parameters to send when requesting them.
|
String |
getUserInfoPath()
The provider userInfo resource path
|
boolean |
isUseBasicAuthorizationHeader()
Deprecated.
|
boolean |
isValidateIssuer() |
OAuth2ClientOptions |
setAuthorizationPath(String authorizationPath) |
OAuth2ClientOptions |
setClientID(String clientID)
Set the provider client id
|
OAuth2ClientOptions |
setClientSecret(String clientSecret)
Set the provider client secret
|
OAuth2ClientOptions |
setClientSecretParameterName(String clientSecretParameterName)
Override the HTTP form field name for client secret
|
OAuth2ClientOptions |
setExtraParameters(JsonObject extraParams)
Set extra parameters to be sent to the provider on each request
|
OAuth2ClientOptions |
setFlow(OAuth2FlowType flow) |
OAuth2ClientOptions |
setHeaders(JsonObject headers)
Set custom headers to be sent with every request to the provider
|
OAuth2ClientOptions |
setIntrospectionPath(String introspectionPath)
Set the provider token introspection resource path
|
OAuth2ClientOptions |
setJwkPath(String jwkPath) |
OAuth2ClientOptions |
setJWTOptions(JWTOptions jwtOptions) |
OAuth2ClientOptions |
setLogoutPath(String logoutPath)
Set the provider logout path
|
OAuth2ClientOptions |
setPubSecKeys(List<PubSecKeyOptions> pubSecKeys) |
OAuth2ClientOptions |
setRevocationPath(String revocationPath)
Set the Oauth2 revocation resource path.
|
OAuth2ClientOptions |
setScopeSeparator(String scopeSeparator)
Deprecated.
|
OAuth2ClientOptions |
setSite(String site)
Root URL for the provider
|
OAuth2ClientOptions |
setTokenPath(String tokenPath) |
OAuth2ClientOptions |
setUseBasicAuthorizationHeader(boolean useBasicAuthorizationHeader)
Deprecated.
|
OAuth2ClientOptions |
setUserAgent(String userAgent)
Set a custom user agent to use when communicating to a provider
|
OAuth2ClientOptions |
setUserInfoParameters(JsonObject userInfoParams)
Set custom parameters to be sent during the userInfo resource request
|
OAuth2ClientOptions |
setUserInfoPath(String userInfoPath)
Set the provider userInfo resource path
|
OAuth2ClientOptions |
setValidateIssuer(boolean validateIssuer) |
addCrlPath, addCrlValue, addEnabledCipherSuite, addEnabledSecureTransportProtocol, equals, getAlpnVersions, getDecoderInitialBufferSize, getDefaultHost, getDefaultPort, getHttp2ConnectionWindowSize, getHttp2KeepAliveTimeout, getHttp2MaxPoolSize, getHttp2MultiplexingLimit, getInitialSettings, getKeepAliveTimeout, getMaxChunkSize, getMaxHeaderSize, getMaxInitialLineLength, getMaxPoolSize, getMaxRedirects, getMaxWaitQueueSize, getMaxWebsocketFrameSize, getMaxWebSocketFrameSize, getMaxWebsocketMessageSize, getMaxWebSocketMessageSize, getPipeliningLimit, getPoolCleanerPeriod, getProtocolVersion, getTryUsePerMessageWebsocketCompression, getTryUsePerMessageWebSocketCompression, getTryWebsocketDeflateFrameCompression, getTryWebSocketDeflateFrameCompression, getWebSocketClosingTimeout, getWebsocketCompressionAllowClientNoContext, getWebSocketCompressionAllowClientNoContext, getWebsocketCompressionLevel, getWebSocketCompressionLevel, getWebsocketCompressionRequestServerNoContext, getWebSocketCompressionRequestServerNoContext, hashCode, isForceSni, isHttp2ClearTextUpgrade, isKeepAlive, isPipelining, isSendUnmaskedFrames, isTryUseCompression, isVerifyHost, removeEnabledSecureTransportProtocol, setAlpnVersions, setConnectTimeout, setDecoderInitialBufferSize, setDefaultHost, setDefaultPort, setEnabledSecureTransportProtocols, setForceSni, setHttp2ClearTextUpgrade, setHttp2ConnectionWindowSize, setHttp2KeepAliveTimeout, setHttp2MaxPoolSize, setHttp2MultiplexingLimit, setIdleTimeout, setIdleTimeoutUnit, setInitialSettings, setJdkSslEngineOptions, setKeepAlive, setKeepAliveTimeout, setKeyCertOptions, setKeyStoreOptions, setLocalAddress, setLogActivity, setMaxChunkSize, setMaxHeaderSize, setMaxInitialLineLength, setMaxPoolSize, setMaxRedirects, setMaxWaitQueueSize, setMaxWebsocketFrameSize, setMaxWebSocketFrameSize, setMaxWebsocketMessageSize, setMaxWebSocketMessageSize, setMetricsName, setOpenSslEngineOptions, setPemKeyCertOptions, setPemTrustOptions, setPfxKeyCertOptions, setPfxTrustOptions, setPipelining, setPipeliningLimit, setPoolCleanerPeriod, setProtocolVersion, setProxyOptions, setReceiveBufferSize, setReuseAddress, setReusePort, setSendBufferSize, setSendUnmaskedFrames, setSoLinger, setSsl, setSslEngineOptions, setSslHandshakeTimeout, setSslHandshakeTimeoutUnit, setTcpCork, setTcpFastOpen, setTcpKeepAlive, setTcpNoDelay, setTcpQuickAck, setTcpUserTimeout, setTrafficClass, setTrustAll, setTrustOptions, setTrustStoreOptions, setTryUseCompression, setTryUsePerFrameWebsocketCompression, setTryUsePerFrameWebSocketCompression, setTryUsePerMessageWebsocketCompression, setTryUsePerMessageWebSocketCompression, setUseAlpn, setUsePooledBuffers, setVerifyHost, setWebSocketClosingTimeout, setWebsocketCompressionAllowClientNoContext, setWebSocketCompressionAllowClientNoContext, setWebsocketCompressionLevel, setWebSocketCompressionLevel, setWebsocketCompressionRequestServerNoContext, setWebSocketCompressionRequestServerNoContext, toJson
getConnectTimeout, getLocalAddress, getMetricsName, getProxyOptions, isTrustAll
getCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getIdleTimeoutUnit, getJdkSslEngineOptions, getKeyCertOptions, getKeyStoreOptions, getOpenSslEngineOptions, getPemKeyCertOptions, getPemTrustOptions, getPfxKeyCertOptions, getPfxTrustOptions, getSoLinger, getSslEngineOptions, getSslHandshakeTimeout, getSslHandshakeTimeoutUnit, getTcpUserTimeout, getTrustOptions, getTrustStoreOptions, isSsl, isTcpCork, isTcpFastOpen, isTcpKeepAlive, isTcpNoDelay, isTcpQuickAck, isUseAlpn, isUsePooledBuffers
getLogActivity, getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, isReusePort
public OAuth2ClientOptions()
public OAuth2ClientOptions(HttpClientOptions other)
other
- the options to copypublic OAuth2ClientOptions(OAuth2ClientOptions other)
other
- the options to copypublic OAuth2ClientOptions(JsonObject json)
json
- the JSONpublic String getSite()
public String getAuthorizationPath()
public OAuth2ClientOptions setAuthorizationPath(String authorizationPath)
public String getTokenPath()
public OAuth2ClientOptions setTokenPath(String tokenPath)
public String getRevocationPath()
public OAuth2ClientOptions setRevocationPath(String revocationPath)
@Deprecated public boolean isUseBasicAuthorizationHeader()
@Deprecated public OAuth2ClientOptions setUseBasicAuthorizationHeader(boolean useBasicAuthorizationHeader)
public String getClientSecretParameterName()
public OAuth2ClientOptions setClientSecretParameterName(String clientSecretParameterName)
clientSecretParameterName
- the new nmepublic OAuth2ClientOptions setSite(String site)
site
- a urlpublic String getClientID()
public OAuth2ClientOptions setClientID(String clientID)
clientID
- client idpublic String getClientSecret()
public OAuth2ClientOptions setClientSecret(String clientSecret)
clientSecret
- client secretpublic String getUserAgent()
public OAuth2ClientOptions setUserAgent(String userAgent)
userAgent
- the user agentpublic JsonObject getHeaders()
public OAuth2ClientOptions setHeaders(JsonObject headers)
headers
- the headerspublic List<PubSecKeyOptions> getPubSecKeys()
public OAuth2ClientOptions setPubSecKeys(List<PubSecKeyOptions> pubSecKeys)
public OAuth2ClientOptions addPubSecKey(PubSecKeyOptions pubSecKey)
public String getLogoutPath()
public OAuth2ClientOptions setLogoutPath(String logoutPath)
logoutPath
- a logout resource pathpublic String getUserInfoPath()
public OAuth2ClientOptions setUserInfoPath(String userInfoPath)
userInfoPath
- a resource path@Deprecated public String getScopeSeparator()
@Deprecated public OAuth2ClientOptions setScopeSeparator(String scopeSeparator)
scopeSeparator
- a separator e.g.: ' ', '+', ','public JsonObject getExtraParameters()
public OAuth2ClientOptions setExtraParameters(JsonObject extraParams)
extraParams
- a json representation of the parameterspublic String getIntrospectionPath()
public OAuth2ClientOptions setIntrospectionPath(String introspectionPath)
introspectionPath
- a resource pathpublic JsonObject getUserInfoParameters()
public OAuth2ClientOptions setUserInfoParameters(JsonObject userInfoParams)
userInfoParams
- json representation of the parameterspublic String getJwkPath()
public OAuth2ClientOptions setJwkPath(String jwkPath)
public JWTOptions getJWTOptions()
public OAuth2ClientOptions setJWTOptions(JWTOptions jwtOptions)
public OAuth2FlowType getFlow()
public OAuth2ClientOptions setFlow(OAuth2FlowType flow)
public boolean isValidateIssuer()
public OAuth2ClientOptions setValidateIssuer(boolean validateIssuer)
Copyright © 2023 Eclipse. All rights reserved.