Examples of CallbackHandler


Examples of javax.security.auth.callback.CallbackHandler

        TokenValidatorParameters validatorParameters = createValidatorParameters();
        TokenRequirements tokenRequirements = validatorParameters.getTokenRequirements();
       
        // Create a ValidateTarget consisting of a SAML Assertion
        Crypto crypto = CryptoFactory.getInstance(getEncryptionProperties());
        CallbackHandler callbackHandler = new PasswordCallbackHandler();
        Element samlToken =
            createSAMLAssertion(WSConstants.WSS_SAML2_TOKEN_TYPE, crypto, "mystskey", callbackHandler);
        Document doc = samlToken.getOwnerDocument();
        samlToken = (Element)doc.appendChild(samlToken);
       
View Full Code Here

Examples of javax.security.auth.callback.CallbackHandler

        validatorParameters.setTokenStore(null);
        TokenRequirements tokenRequirements = validatorParameters.getTokenRequirements();
       
        // Create a ValidateTarget consisting of a SAML Assertion
        Crypto crypto = CryptoFactory.getInstance(getEncryptionProperties());
        CallbackHandler callbackHandler = new PasswordCallbackHandler();
        Element samlToken =
            createSAMLAssertionWithClaimsProvider(
                WSConstants.WSS_SAML_TOKEN_TYPE, crypto, "mystskey", callbackHandler
            );
        Document doc = samlToken.getOwnerDocument();
View Full Code Here

Examples of javax.security.auth.callback.CallbackHandler

        TokenValidatorParameters validatorParameters = createValidatorParameters();
        TokenRequirements tokenRequirements = validatorParameters.getTokenRequirements();
       
        // Create a ValidateTarget consisting of a SAML Assertion
        Crypto crypto = CryptoFactory.getInstance(getEveCryptoProperties());
        CallbackHandler callbackHandler = new EveCallbackHandler();
        Element samlToken =
            createSAMLAssertion(WSConstants.WSS_SAML_TOKEN_TYPE, crypto, "eve", callbackHandler);
        Document doc = samlToken.getOwnerDocument();
        samlToken = (Element)doc.appendChild(samlToken);
       
View Full Code Here

Examples of org.apache.helix.manager.zk.CallbackHandler

    StringBuilder sb = new StringBuilder();
    List<CallbackHandler> handlers = manager.getHandlers();
    sb.append(manager.getInstanceName() + " has " + handlers.size() + " cb-handlers. [");

    for (int i = 0; i < handlers.size(); i++) {
      CallbackHandler handler = handlers.get(i);
      String path = handler.getPath();
      sb.append(path.substring(manager.getClusterName().length() + 1) + ": "
          + handler.getListener());
      if (i < (handlers.size() - 1)) {
        sb.append(", ");
      }
    }
    sb.append("]");
View Full Code Here

Examples of org.apache.tuscany.sca.core.invocation.CallbackHandler

            resolvedEndpoint = msgContext.getFrom().getCallbackEndpoint();
        }
       
        if (resolvedEndpoint != null){
            if (resolvedEndpoint.getBinding() == null){
                this.callbackHandler = new CallbackHandler(resolvedEndpoint.getURI());
            } else if (resolvedEndpoint.getBinding().getType().equals(SCABinding.TYPE)){
                this.callbackHandler = new CallbackHandler(resolvedEndpoint.getURI());
            } else {
                this.callbackHandler = new CallbackHandler(resolvedEndpoint.getBinding().getURI());
            }
        } else {
            this.callbackHandler = (CallbackHandler)msgContext.getHeaders().get(Constants.CALLBACK);
           
            if (callbackHandler == null){
                this.callbackHandler = new CallbackHandler(null);
            }
        }
       
        if (callbackHandler.getCallbackTargetURI() != null){
            logger.log(Level.FINE, "Selecting callback EPR using address from forward message: " + callbackHandler.getCallbackTargetURI());
View Full Code Here

Examples of org.datanucleus.state.CallbackHandler

        {
            // Using ResourceLocal transaction so allocate a transaction
            tx = new JPAEntityTransaction(om);
        }

        CallbackHandler beanValidator = BeanValidatorHandlerFactory.newInstance(om);
        if (beanValidator != null)
        {
            om.getCallbackHandler().addListener(beanValidator, null);
        }
View Full Code Here

Examples of org.eclipse.ecf.core.security.CallbackHandler

   * @since 5.0
   */
  protected Credentials getFileRequestCredentials() throws UnsupportedCallbackException, IOException {
    if (connectContext == null)
      return null;
    final CallbackHandler callbackHandler = connectContext.getCallbackHandler();
    if (callbackHandler == null)
      return null;
    final NameCallback usernameCallback = new NameCallback(USERNAME_PREFIX);
    final ObjectCallback passwordCallback = new ObjectCallback();
    callbackHandler.handle(new Callback[] {usernameCallback, passwordCallback});
    username = usernameCallback.getName();
    password = (String) passwordCallback.getObject();
    return new UsernamePasswordCredentials(username, password);
  }
View Full Code Here

Examples of org.jboss.remoting.samples.config.factories.FactoryConfigSample.CallbackHandler

         callbackConnector.create();
         callbackConnector.addInvocationHandler("sample", new FactoryConfigSample.SampleInvocationHandler());
         callbackConnector.start();
        
         // Add callback handler.
         CallbackHandler callbackHandler = new FactoryConfigSample.CallbackHandler();
         String callbackHandleObject = "myCallbackHandleObject";
         client.addListener(callbackHandler, callbackLocator, callbackHandleObject);
        
         client.disconnect();
         callbackConnector.stop();
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.