Package org.apache.ws.sandbox.security.conversation.dkalgo

Examples of org.apache.ws.sandbox.security.conversation.dkalgo.DerivationAlgorithm


        log.debug("KeyDerivator: deriving key from contecxt :" + convSession.getContextInfo().getIdentifier() + " for dkt: " + dkInfo.getId());
        byte[] secret = convSession.getContextInfo().getSharedSecret(); //Shared secret
        String labelAndNonce = getLabelAndNonce(convSession, dkInfo); //Label and nonce
        long keyLength = getKeyLength(convSession, dkInfo); //Length of the key to generated
        int offset = getOffset(convSession, dkInfo);
        DerivationAlgorithm derivationAlgo = AlgoFactory.getInstance(dkInfo.
                getAlgorithm()); //Derivation algorithm
        return derivationAlgo.createKey(secret, labelAndNonce, offset, keyLength);
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.sandbox.security.conversation.dkalgo.DerivationAlgorithm

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.