Examples of MessageDecoder


Examples of org.ethereum.net.wire.MessageDecoder

            ethHandler.setMsgQueue(messageQueue);
            ethHandler.setPeerDiscoveryMode(true);

            shhHandler.setMsgQueue(messageQueue);

            final MessageDecoder decoder = ctx.getBean(MessageDecoder.class);
            final MessageEncoder encoder = ctx.getBean(MessageEncoder.class);

            b.handler(

                    new ChannelInitializer<NioSocketChannel>(){
View Full Code Here

Examples of org.opensaml.ws.message.decoder.MessageDecoder

        } else {
            throw new UnsupportedOperationException("Binding type - " + destinationBindingType + " is not supported");
        }

        // Do we need binding specific decoder?
        MessageDecoder decoder = new Pac4jHTTPPostDecoder(parserPool);
        this.handler = new Saml2WebSSOProfileHandler(this.credentialProvider, encoder, decoder, parserPool,
                destinationBindingType);

        // Build provider for digital signature validation and encryption
        this.signatureTrustEngineProvider = new SignatureTrustEngineProvider(metadataManager);
View Full Code Here

Examples of org.opensaml.ws.message.decoder.MessageDecoder

     */
    @Test
    public void testGETDecoder() throws Exception {
        prepareHttpRequest("message/SAMLResponse.xml", "GET", "http://localhost:8080/url", "text/html");
        replayMock();
        MessageDecoder decoder = processor.getBinding(new HttpServletRequestAdapter(request)).getMessageDecoder();
        verifyMock();
        assertNotNull(decoder);
    }
View Full Code Here

Examples of org.opensaml.ws.message.decoder.MessageDecoder

     */
    @Test(expected = SAMLException.class)
    public void testUnknownDecoder() throws Exception {
        prepareHttpRequest("message/SAMLResponse.xml", "HEAD", "http://localhost:8080/url", "application/json");
        replayMock();
        MessageDecoder decoder = processor.getBinding(new HttpServletRequestAdapter(request)).getMessageDecoder();
        verifyMock();
        assertNotNull(decoder);
    }
View Full Code Here

Examples of org.opensaml.ws.message.decoder.MessageDecoder

        samlContext.setPeerEntityRole(peerEntityRole);
        samlContext.setInboundSAMLProtocol(SAMLConstants.SAML20P_NS);
        samlContext.setInboundSAMLBinding(binding.getBindingURI());

        // Decode the message
        MessageDecoder decoder = binding.getMessageDecoder();
        decoder.decode(samlContext);

        if (samlContext.getPeerEntityMetadata() == null) {
            throw new MetadataProviderException("Metadata for issuer " + samlContext.getInboundMessageIssuer() + " wasn't found");
        }
View Full Code Here

Examples of org.rzo.yajsw.controller.jvm.MessageDecoder

    // add a framer to split incoming bytes to message chunks
    connector.getPipeline().addLast("framer", new DelimiterBasedFrameDecoder(8192, true, Delimiters.nulDelimiter()));

    // add message coding
    connector.getPipeline().addLast("messageEncoder", new MessageEncoder());
    connector.getPipeline().addLast("messageDecoder", new MessageDecoder());

    // pinger is a cycler with high priority threads
    // sends ping messages within a ping interval
    _pinger = new Cycler(getPingInterval(), 0, Executors.newCachedThreadPool(new DaemonThreadFactory("pinger", Thread.MAX_PRIORITY)),
        new Runnable()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.