org.surfnet.oaaas.example.api
Class OAuthAuthenticator

java.lang.Object
  extended by org.surfnet.oaaas.example.api.OAuthAuthenticator
All Implemented Interfaces:
com.yammer.dropwizard.auth.Authenticator<String,AuthenticatedPrincipal>

public class OAuthAuthenticator
extends Object
implements com.yammer.dropwizard.auth.Authenticator<String,AuthenticatedPrincipal>

Authenticator that ask the Authorization Server to check


Constructor Summary
OAuthAuthenticator(UniversityFooConfiguration configuration)
           
 
Method Summary
 com.google.common.base.Optional<AuthenticatedPrincipal> authenticate(String accessToken)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthAuthenticator

public OAuthAuthenticator(UniversityFooConfiguration configuration)
Parameters:
configuration -
Method Detail

authenticate

public com.google.common.base.Optional<AuthenticatedPrincipal> authenticate(String accessToken)
                                                                     throws com.yammer.dropwizard.auth.AuthenticationException
Specified by:
authenticate in interface com.yammer.dropwizard.auth.Authenticator<String,AuthenticatedPrincipal>
Throws:
com.yammer.dropwizard.auth.AuthenticationException


Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.