Package org.apache.rahas.client

Examples of org.apache.rahas.client.STSClient.requestSecurityToken()


                //Set soap version
                client.setSoapVersion(msgContext.getOptions().getSoapVersionURI());
               
                //Make the request
                org.apache.rahas.Token rst =
                    client.requestSecurityToken(servicePolicy,
                                                issuerEpr,
                                                issuerPolicy,
                                                servceEprAddress);
               
                //Add the token to token storage
View Full Code Here


                }
               
               
                //Make the request
                org.apache.rahas.Token rst =
                    client.requestSecurityToken(servicePolicy,
                                                issuerEpr,
                                                issuerPolicy,
                                                servceEprAddress);
               
                //Add the token to token storage
View Full Code Here

          client.setCryptoInfo(RampartUtil.getEncryptionCrypto(rpd
              .getRampartConfig(), message.getAxisService()
              .getClassLoader()), RampartUtil.getPasswordCB(
              message, rpd));
          String address = message.getTo().getAddress();
          Token tok = client.requestSecurityToken(servicePolicy,
              address, issuerPolicy, null);

          tok.setState(Token.ISSUED);
          this.storage.add(tok);
View Full Code Here

            String servceEprAddress = rmd.getMsgContext()
                    .getOptions().getTo().getAddress();
   
            //Make the request
            org.apache.rahas.Token rst =
                client.requestSecurityToken(servicePolicy,
                                            issuerEpr,
                                            issuerPolicy,
                                            servceEprAddress);
           
            //Add the token to token storage
View Full Code Here

                }
               
               
                //Make the request
                org.apache.rahas.Token rst =
                    client.requestSecurityToken(servicePolicy,
                                                issuerEpr,
                                                issuerPolicy,
                                                servceEprAddress);
               
                //Add the token to token storage
View Full Code Here

   
    stsClient.setRstTemplate(getRSTTemplate());
    String action = TrustUtil.getActionValue(RahasConstants.VERSION_05_02, RahasConstants.RST_ACTION_ISSUE);
    stsClient.setAction(action);
   
    Token responseToken = stsClient.requestSecurityToken(loadPolicy("sample05/policy.xml"), "http://localhost:8080/axis2/services/STS", loadPolicy("sample05/sts_policy.xml"), null);
   
          System.out.println("\n############################# Requested Token ###################################\n");
          System.out.println(responseToken.getToken().toString());
   
          TokenStorage store = TrustUtil.getTokenStore(ctx);
View Full Code Here

   
    stsClient.setRstTemplate(getRSTTemplate());
    String action = TrustUtil.getActionValue(RahasConstants.VERSION_05_02, RahasConstants.RST_ACTION_ISSUE);
    stsClient.setAction(action);
   
    Token responseToken = stsClient.requestSecurityToken(loadPolicy("sample08/policy.xml"), "http://localhost:8080/axis2/services/STS", loadPolicy("sample08/sts_policy.xml"), null);
   
          System.out.println("\n############################# Requested SAML 2.0 Token ###################################\n");
          System.out.println(responseToken.getToken().toString());
    System.out.println("\n##########################################################################################\n");
                
View Full Code Here

   
    stsClient.setRstTemplate(getRSTTemplate());
    String action = TrustUtil.getActionValue(RahasConstants.VERSION_05_02, RahasConstants.RST_ACTION_ISSUE);
    stsClient.setAction(action);
   
    Token responseToken = stsClient.requestSecurityToken(loadPolicy("sample05/policy.xml"), "http://localhost:8080/axis2/services/STS", loadPolicy("sample05/sts_policy.xml"), null);
   
          System.out.println("\n############################# Requested Token ###################################\n");
          System.out.println(responseToken.getToken().toString());
   
          TokenStorage store = TrustUtil.getTokenStore(ctx);
View Full Code Here

          client.setCryptoInfo(RampartUtil.getEncryptionCrypto(rpd
              .getRampartConfig(), message.getAxisService()
              .getClassLoader()), RampartUtil.getPasswordCB(
              message, rpd));
          String address = message.getTo().getAddress();
          Token tok = client.requestSecurityToken(servicePolicy,
              address, issuerPolicy, null);

          tok.setState(Token.ISSUED);
          this.storage.add(tok);
View Full Code Here

                    client.setCryptoInfo(RampartUtil.getEncryptionCrypto(rpd
                            .getRampartConfig(), message.getAxisService()
                            .getClassLoader()), RampartUtil.getPasswordCB(
                            message, rpd));
                    String address = message.getTo().getAddress();
                    Token tok = client.requestSecurityToken(servicePolicy,
                            address, issuerPolicy, null);
                   
                    tok.setState(Token.ISSUED);
                    this.storage.add(tok);
                   
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.