List of usage examples for javax.security.jacc PolicyContextException toString
public String toString()
From source file:adalid.jaas.google.GoogleRecaptcha.java
private static String getRequestParameter(String key) { if (key == null) { return null; }// w w w . j a v a 2s .c om Object request; try { request = PolicyContext.getContext(HttpServletRequest.class.getName()); } catch (PolicyContextException ex) { logger.log(Level.SEVERE, ex.toString(), ex); return null; } if (request instanceof HttpServletRequest) { HttpServletRequest httpServletRequest = (HttpServletRequest) request; String parameter = httpServletRequest.getParameter(key); logger.log(TRACE, "{0}: {1}", new Object[] { key, parameter }); return parameter; } logger.log(TRACE, "HTTP Servlet Request: {0}", request); return null; }