Package org.jboss.identity.federation.ws.trust

Examples of org.jboss.identity.federation.ws.trust.BinarySecretType


      for (Object obj : entropy.getAny())
      {
         JAXBElement element = (JAXBElement) obj;
         if (element.getDeclaredType().equals(BinarySecretType.class))
         {
            BinarySecretType binarySecret = (BinarySecretType) element.getValue();
            secret = binarySecret.getValue();
            break;
         }
      }
      return secret;
   }
View Full Code Here


            EntropyType clientEntropy = request.getEntropy();
            if (clientEntropy != null)
               clientSecret = WSTrustUtil.getBinarySecret(clientEntropy);

            byte[] serverSecret = WSTrustUtil.createRandomSecret((int) keySize / 8);
            BinarySecretType serverBinarySecret = new BinarySecretType();
            serverBinarySecret.setType(WSTrustConstants.BS_TYPE_NONCE);
            serverBinarySecret.setValue(serverSecret);
            serverEntropy = new EntropyType();
            serverEntropy.getAny().add(objFactory.createBinarySecret(serverBinarySecret));

            if (clientSecret != null && clientSecret.length != 0)
            {
View Full Code Here

TOP

Related Classes of org.jboss.identity.federation.ws.trust.BinarySecretType

Copyright © 2018 www.massapicom. 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.