binaryToken = getBinaryToken(soapHeader); if (binaryToken != null) Source theResponse = this.handleTokenRequest(req); return convert(theResponse); return convert(this.handleTokenRequestCollection((RequestSecurityTokenCollection) baseRequest));
this.config = this.getConfiguration(); Source source = this.marshallResponse(handler.issue(request, this.context.getUserPrincipal())); Document doc = handler.postProcess((Document) ((DOMSource) source).getNode(), request); return new DOMSource(doc); Source source = this.marshallResponse(handler.renew(request, this.context.getUserPrincipal())); return this.marshallResponse(handler.cancel(request, this.context.getUserPrincipal())); else if (requestType.equals(WSTrustConstants.VALIDATE_REQUEST)) return this.marshallResponse(handler.validate(request, this.context.getUserPrincipal())); else throw new WSTrustException(ErrorCodes.STS_INVALID_REQUEST_TYPE + requestType);
soap12 = SOAPUtil.isSOAP12(request); SOAPHeader soapHeader = request.getSOAPHeader(); binaryToken = getBinaryToken(soapHeader); if (binaryToken != null) { NamedNodeMap namedNodeMap = binaryToken.getAttributes(); req.setBinaryValueType(URI.create(valueType)); Source theResponse = this.handleTokenRequest(req); return convert(theResponse, soap12); } else if (baseRequest instanceof RequestSecurityTokenCollection) { return convert(this.handleTokenRequestCollection((RequestSecurityTokenCollection) baseRequest), soap12); } else throw logger.stsWSInvalidTokenRequestError();
this.config = this.getConfiguration(); Source source = this.marshallResponse(handler.issue(request, this.context.getUserPrincipal())); Document doc = handler.postProcess((Document) ((DOMSource) source).getNode(), request); return new DOMSource(doc); Source source = this.marshallResponse(handler.renew(request, this.context.getUserPrincipal())); return this.marshallResponse(handler.cancel(request, this.context.getUserPrincipal())); else if (requestType.equals(WSTrustConstants.VALIDATE_REQUEST)) return this.marshallResponse(handler.validate(request, this.context.getUserPrincipal())); else throw new WSTrustException(ErrorCodes.STS_INVALID_REQUEST_TYPE + requestType);
soap12 = SOAPUtil.isSOAP12(request); SOAPHeader soapHeader = request.getSOAPHeader(); binaryToken = getBinaryToken(soapHeader); if (binaryToken != null) { NamedNodeMap namedNodeMap = binaryToken.getAttributes(); req.setBinaryValueType(URI.create(valueType)); Source theResponse = this.handleTokenRequest(req); return convert(theResponse, soap12); } else if (baseRequest instanceof RequestSecurityTokenCollection) { return convert(this.handleTokenRequestCollection((RequestSecurityTokenCollection) baseRequest), soap12); } else throw logger.stsWSInvalidTokenRequestError();
try { logger.info("Loading STS configuration"); this.config = this.getConfiguration(); } catch (ConfigurationException e) { throw logger.stsWSConfigurationError(e); Source source = this.marshallResponse(handler.issue(request, this.context.getUserPrincipal())); Document doc = handler.postProcess((Document) ((DOMSource) source).getNode(), request); return new DOMSource(doc); } else if (requestType.equals(WSTrustConstants.RENEW_REQUEST)) { Source source = this.marshallResponse(handler.renew(request, this.context.getUserPrincipal())); return this.marshallResponse(handler.cancel(request, this.context.getUserPrincipal())); else if (requestType.equals(WSTrustConstants.VALIDATE_REQUEST)) return this.marshallResponse(handler.validate(request, this.context.getUserPrincipal())); else throw logger.stsWSInvalidRequestTypeError(requestType);
soap12 = SOAPUtil.isSOAP12(request); SOAPHeader soapHeader = request.getSOAPHeader(); binaryToken = getBinaryToken(soapHeader); if (binaryToken != null) { NamedNodeMap namedNodeMap = binaryToken.getAttributes(); req.setBinaryValueType(URI.create(valueType)); Source theResponse = this.handleTokenRequest(req); return convert(theResponse, soap12); } else if (baseRequest instanceof RequestSecurityTokenCollection) { return convert(this.handleTokenRequestCollection((RequestSecurityTokenCollection) baseRequest), soap12); } else throw logger.stsWSInvalidTokenRequestError();
try { logger.info("Loading STS configuration"); this.config = this.getConfiguration(); } catch (ConfigurationException e) { throw logger.stsWSConfigurationError(e); Source source = this.marshallResponse(handler.issue(request, this.context.getUserPrincipal())); Document doc = handler.postProcess((Document) ((DOMSource) source).getNode(), request); return new DOMSource(doc); } else if (requestType.equals(WSTrustConstants.RENEW_REQUEST)) { Source source = this.marshallResponse(handler.renew(request, this.context.getUserPrincipal())); return this.marshallResponse(handler.cancel(request, this.context.getUserPrincipal())); else if (requestType.equals(WSTrustConstants.VALIDATE_REQUEST)) return this.marshallResponse(handler.validate(request, this.context.getUserPrincipal())); else throw logger.stsWSInvalidRequestTypeError(requestType);
binaryToken = getBinaryToken(soapHeader); if (binaryToken != null) Source theResponse = this.handleTokenRequest(req); return convert(theResponse); return convert(this.handleTokenRequestCollection((RequestSecurityTokenCollection) baseRequest));
try { logger.info("Loading STS configuration"); this.config = this.getConfiguration(); } catch (ConfigurationException e) { throw logger.stsWSConfigurationError(e); Source source = this.marshallResponse(handler.issue(request, this.context.getUserPrincipal())); Document doc = handler.postProcess((Document) ((DOMSource) source).getNode(), request); return new DOMSource(doc); } else if (requestType.equals(WSTrustConstants.RENEW_REQUEST)) { Source source = this.marshallResponse(handler.renew(request, this.context.getUserPrincipal())); return this.marshallResponse(handler.cancel(request, this.context.getUserPrincipal())); else if (requestType.equals(WSTrustConstants.VALIDATE_REQUEST)) return this.marshallResponse(handler.validate(request, this.context.getUserPrincipal())); else throw logger.stsWSInvalidRequestTypeError(requestType);