public class OAuth2AuthHandler extends Object implements AuthHandler
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<OAuth2AuthHandler> |
__TYPE_ARG |
Constructor and Description |
---|
OAuth2AuthHandler(OAuth2AuthHandler delegate) |
Modifier and Type | Method and Description |
---|---|
AuthHandler |
addAuthorities(Set<String> authorities)
Add a set of required authorities for this auth handler
|
AuthHandler |
addAuthority(String authority)
Add a required authority for this auth handler
|
static OAuth2AuthHandler |
create(OAuth2Auth authProvider,
String callbackURL)
Create a OAuth2 auth handler with host pinning
|
OAuth2AuthHandler |
extraParams(JsonObject extraParams)
Extra parameters needed to be passed while requesting a token.
|
OAuth2AuthHandler |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static OAuth2AuthHandler |
newInstance(OAuth2AuthHandler arg) |
OAuth2AuthHandler |
setupCallback(Route route)
add the callback handler to a given route.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newInstance
public static final TypeArg<OAuth2AuthHandler> __TYPE_ARG
public OAuth2AuthHandler(OAuth2AuthHandler delegate)
public OAuth2AuthHandler getDelegate()
getDelegate
in interface AuthHandler
public void handle(RoutingContext arg0)
Handler
handle
in interface Handler<RoutingContext>
handle
in interface AuthHandler
arg0
- the event to handlepublic AuthHandler addAuthority(String authority)
addAuthority
in interface AuthHandler
authority
- the authoritypublic AuthHandler addAuthorities(Set<String> authorities)
addAuthorities
in interface AuthHandler
authorities
- the set of authoritiespublic static OAuth2AuthHandler create(OAuth2Auth authProvider, String callbackURL)
authProvider
- the auth provider to usecallbackURL
- the callback URL you entered in your provider admin console, usually it should be something like: `https://myserver:8888/callback`public OAuth2AuthHandler extraParams(JsonObject extraParams)
extraParams
- extra optional parameters.public OAuth2AuthHandler setupCallback(Route route)
route
- a given route e.g.: `/callback`public static OAuth2AuthHandler newInstance(OAuth2AuthHandler arg)
Copyright © 2017. All rights reserved.