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 StringgetAuthUrl()@MinDuration("1ms") @NotNull io.airlift.units.DurationgetChallengeTimeout()@NotNull StringgetClientId()@NotNull StringgetClientSecret()@NotNull StringgetJwksUrl()Optional<String>getStateKey()@NotNull StringgetTokenUrl()Optional<@FileExists File>getUserMappingFile()Optional<String>getUserMappingPattern()OAuth2ConfigsetAuthUrl(String authUrl)OAuth2ConfigsetChallengeTimeout(io.airlift.units.Duration challengeTimeout)OAuth2ConfigsetClientId(String clientId)OAuth2ConfigsetClientSecret(String clientSecret)OAuth2ConfigsetJwksUrl(String jwksUrl)OAuth2ConfigsetStateKey(String stateKey)OAuth2ConfigsetTokenUrl(String tokenUrl)OAuth2ConfigsetUserMappingFile(File userMappingFile)OAuth2ConfigsetUserMappingPattern(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)
-
-