i have a byte array (SecretKey Value), and i know what algorithm that SecretKey is for.
So how can i create javax.crypto.SecretKey from that byte array and algorith String.
exactly, my problem is that: i use secretkey of a KerberosTicket to encrypt my SOAP Message.
To encrypt SOAPMsg i use XMLCipher obj of XMLSecurity (from apache) obj.
To init XMLCipher i must supply a SecretKey.
So i must create a javax.crypto.SecretKey from byte array which i get from KerberosTicket but how ?
Anybody help ?