public static final class GoogleTokenProvider.Builder extends Object implements Builder<GoogleTokenProvider>
GoogleTokenProvider instance.| Modifier and Type | Method and Description |
|---|---|
GoogleTokenProvider |
build()
Build the instance from this builder.
|
GoogleTokenProvider.Builder |
clientId(String clientId)
Google application client id, to validate that the token was generated by Google for us.
|
GoogleTokenProvider.Builder |
config(Config config)
Update this builder from configuration.
|
GoogleTokenProvider.Builder |
optional(boolean optional)
If set to true, this provider will return
SecurityResponse.SecurityStatus.ABSTAIN instead
of failing in case of invalid request. |
GoogleTokenProvider.Builder |
proxyHost(String host)
Set proxy host when talking to Google.
|
GoogleTokenProvider.Builder |
proxyPort(int port)
Set proxy port when talking to Google.
|
GoogleTokenProvider.Builder |
realm(String realm)
Set the authentication realm to build challenge, defaults to "helidon".
|
GoogleTokenProvider.Builder |
tokenProvider(TokenHandler provider)
Token provider to extract Google access token from request, defaults to "Authorization" header with a "bearer " prefix.
|
public GoogleTokenProvider build()
Builderbuild in interface Builder<GoogleTokenProvider>public GoogleTokenProvider.Builder clientId(String clientId)
clientId - client id as obtained from Google developer consolepublic GoogleTokenProvider.Builder optional(boolean optional)
SecurityResponse.SecurityStatus.ABSTAIN instead
of failing in case of invalid request.optional - whether to be optional or notpublic GoogleTokenProvider.Builder tokenProvider(TokenHandler provider)
provider - token providerpublic GoogleTokenProvider.Builder realm(String realm)
realm - realm of authenticationpublic GoogleTokenProvider.Builder proxyHost(String host)
host - host of http proxy serverpublic GoogleTokenProvider.Builder proxyPort(int port)
port - port of http proxy server, defaults to 80public GoogleTokenProvider.Builder config(Config config)
config - Configuration at provider (security.provider.x) keyCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.