public void fatalError(SAXParseException exception) throws SAXException { StringBuilder builder = new StringBuilder(); builder.append("Line Number=").append(exception.getLineNumber()); builder.append(" Col Number=").append(exception.getColumnNumber()); builder.append(" Public ID=").append(exception.getPublicId()); builder.append(" System ID=").append(exception.getSystemId()); builder.append(" exc=").append(exception.getLocalizedMessage()); logger.error("SAX Fatal Error:" + builder.toString()); }
public void fatalError(SAXParseException exception) throws SAXException { StringBuilder builder = new StringBuilder(); builder.append("Line Number=").append(exception.getLineNumber()); builder.append(" Col Number=").append(exception.getColumnNumber()); builder.append(" Public ID=").append(exception.getPublicId()); builder.append(" System ID=").append(exception.getSystemId()); builder.append(" exc=").append(exception.getLocalizedMessage()); logger.error("SAX Fatal Error:" + builder.toString()); }
@Override public void run() { try { logger.info("Reloading configuration for " + getContext().getName()); processConfiguration(); } catch (LifecycleException e) { logger.error(e); } } }, timerInterval, timerInterval);
@Override public void run() { try { logger.info("Reloading configuration for " + getContext().getName()); processConfiguration(); } catch (LifecycleException e) { logger.error(e); } } }, timerInterval, timerInterval);
@Override public void run() { try { logger.info("Reloading configuration for " + getContext().getName()); processConfiguration(); } catch (LifecycleException e) { logger.error(e); } } }, timerInterval, timerInterval);
logger.error(ErrorCodes.LOCAL_VALIDATION_SEC_DOMAIN_MUST_BE_SPECIFIED); throw logger.optionNotSet("localValidationSecurityDomain");
logger.error(ErrorCodes.LOCAL_VALIDATION_SEC_DOMAIN_MUST_BE_SPECIFIED); throw logger.optionNotSet("localValidationSecurityDomain");
logger.error(e); return false;
logger.error(e); return false;
public void sessionDestroyed(HttpSessionEvent se) { HttpSession httpSession = se.getSession(); if (httpSession == null) throw logger.nullArgumentError("session"); AssertionType assertion = (AssertionType) httpSession.getAttribute(GeneralConstants.ASSERTION); // If the user had logged out, then the assertion would not be available in the session. // The case when the user closes the browser and does not logout, the session will time out on the // server. So we know that the token has not been canceled by the STS. if (assertion != null) { logger.trace("User has closed the browser. So we proceed to cancel the STS issued token."); PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance(); SAMLProtocolContext samlProtocolContext = new SAMLProtocolContext(); samlProtocolContext.setIssuedAssertion(assertion); try { sts.cancelToken(samlProtocolContext); } catch (ProcessingException e) { logger.error(e); } httpSession.removeAttribute(GeneralConstants.ASSERTION); } } }
public void sessionDestroyed(HttpSessionEvent se) { HttpSession httpSession = se.getSession(); if (httpSession == null) throw logger.nullArgumentError("session"); AssertionType assertion = (AssertionType) httpSession.getAttribute(GeneralConstants.ASSERTION); // If the user had logged out, then the assertion would not be available in the session. // The case when the user closes the browser and does not logout, the session will time out on the // server. So we know that the token has not been canceled by the STS. if (assertion != null) { logger.trace("User has closed the browser. So we proceed to cancel the STS issued token."); PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance(); SAMLProtocolContext samlProtocolContext = new SAMLProtocolContext(); samlProtocolContext.setIssuedAssertion(assertion); try { sts.cancelToken(samlProtocolContext); } catch (ProcessingException e) { logger.error(e); } httpSession.removeAttribute(GeneralConstants.ASSERTION); } } }
logger.error(msg); SecurityException e = new SecurityException(msg); throw new RuntimeException(e);
logger.error(msg); SecurityException e = new SecurityException(msg); throw new RuntimeException(e);
logger.error(pe); throw logger.samlHandlerChainProcessingError(pe); } finally {
logger.error(pe); throw logger.samlHandlerChainProcessingError(pe); } finally {