org.surfnet.oaaas.example.api
Class OAuthAuthenticator
java.lang.Object
org.surfnet.oaaas.example.api.OAuthAuthenticator
- All Implemented Interfaces:
- com.yammer.dropwizard.auth.Authenticator<String,org.surfnet.oaaas.auth.principal.AuthenticatedPrincipal>
public class OAuthAuthenticator
- extends Object
- implements com.yammer.dropwizard.auth.Authenticator<String,org.surfnet.oaaas.auth.principal.AuthenticatedPrincipal>
Authenticator that ask the Authorization Server to check
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAuthAuthenticator
public OAuthAuthenticator(UniversityFooConfiguration configuration)
- Parameters:
configuration -
authenticate
public com.google.common.base.Optional<org.surfnet.oaaas.auth.principal.AuthenticatedPrincipal> authenticate(String accessToken)
throws com.yammer.dropwizard.auth.AuthenticationException
- Specified by:
authenticate in interface com.yammer.dropwizard.auth.Authenticator<String,org.surfnet.oaaas.auth.principal.AuthenticatedPrincipal>
- Throws:
com.yammer.dropwizard.auth.AuthenticationException
Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.