Class OAuth2Config
- java.lang.Object
-
- io.prestosql.server.security.oauth2.OAuth2Config
-
public class OAuth2Config extends Object
-
-
Constructor Summary
Constructors Constructor Description OAuth2Config()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull String
getAuthUrl()
@MinDuration("1ms") @NotNull io.airlift.units.Duration
getChallengeTimeout()
@NotNull String
getClientId()
@NotNull String
getClientSecret()
@NotNull String
getJwksUrl()
Optional<String>
getStateKey()
@NotNull String
getTokenUrl()
Optional<@FileExists File>
getUserMappingFile()
Optional<String>
getUserMappingPattern()
OAuth2Config
setAuthUrl(String authUrl)
OAuth2Config
setChallengeTimeout(io.airlift.units.Duration challengeTimeout)
OAuth2Config
setClientId(String clientId)
OAuth2Config
setClientSecret(String clientSecret)
OAuth2Config
setJwksUrl(String jwksUrl)
OAuth2Config
setStateKey(String stateKey)
OAuth2Config
setTokenUrl(String tokenUrl)
OAuth2Config
setUserMappingFile(File userMappingFile)
OAuth2Config
setUserMappingPattern(String userMappingPattern)
-
-
-
Method Detail
-
setStateKey
@Config("http-server.authentication.oauth2.state-key") public OAuth2Config setStateKey(String stateKey)
-
getAuthUrl
@NotNull public @NotNull String getAuthUrl()
-
setAuthUrl
@Config("http-server.authentication.oauth2.auth-url") public OAuth2Config setAuthUrl(String authUrl)
-
getTokenUrl
@NotNull public @NotNull String getTokenUrl()
-
setTokenUrl
@Config("http-server.authentication.oauth2.token-url") public OAuth2Config setTokenUrl(String tokenUrl)
-
getJwksUrl
@NotNull public @NotNull String getJwksUrl()
-
setJwksUrl
@Config("http-server.authentication.oauth2.jwks-url") public OAuth2Config setJwksUrl(String jwksUrl)
-
getClientId
@NotNull public @NotNull String getClientId()
-
setClientId
@Config("http-server.authentication.oauth2.client-id") public OAuth2Config setClientId(String clientId)
-
getClientSecret
@NotNull public @NotNull String getClientSecret()
-
setClientSecret
@Config("http-server.authentication.oauth2.client-secret") public OAuth2Config setClientSecret(String clientSecret)
-
getChallengeTimeout
@MinDuration("1ms") @NotNull public @MinDuration("1ms") @NotNull io.airlift.units.Duration getChallengeTimeout()
-
setChallengeTimeout
@Config("http-server.authentication.oauth2.challenge-timeout") public OAuth2Config setChallengeTimeout(io.airlift.units.Duration challengeTimeout)
-
setUserMappingPattern
@Config("http-server.authentication.oauth2.user-mapping.pattern") public OAuth2Config setUserMappingPattern(String userMappingPattern)
-
setUserMappingFile
@Config("http-server.authentication.oauth2.user-mapping.file") public OAuth2Config setUserMappingFile(File userMappingFile)
-
-