Package com.yammer.dropwizard.auth

Examples of com.yammer.dropwizard.auth.AuthenticationException


        .get(String.class);
    final VerifyTokenResponse response;
    try {
      response = mapper.readValue(json, VerifyTokenResponse.class);
    } catch (IOException e) {
      throw new AuthenticationException("Could not parse JSON: "+ json, e);
    }
    return Optional.fromNullable(response.getPrincipal());
  }
View Full Code Here


      InMemorySessionTokenCache
        .INSTANCE
        .put(sessionToken, clientUserOptional.get());

    } catch (IllegalArgumentException e) {
      throw new AuthenticationException("Illegal argument in web form authenticator", e);
    } catch (NullPointerException e) {
      throw new AuthenticationException("Mandatory fields missing in web form authenticator", e);
    } catch (IllegalStateException e) {
      throw new AuthenticationException("Illegal state in web form authenticator", e);
    }

    return clientUserOptional;

  }
View Full Code Here

TOP

Related Classes of com.yammer.dropwizard.auth.AuthenticationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.