Package com.sun.xml.ws.security.impl
Class PasswordDerivedKey
java.lang.Object
com.sun.xml.ws.security.impl.PasswordDerivedKey
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
generate160BitKey
(String password, int iteration, byte[] reqsalt) generate16ByteKeyforEncryption
(byte[] keyof20Bytes) generateDerivedKeyforEncryption
(String password, String algorithm, int iteration) byte[]
generateMAC
(byte[] data, String password, int iteration) byte[]
boolean
testAlgorithm
(String algo) verifyEncryptionKey
(String password, int iterate, byte[] receivedSalt) boolean
verifyMACSignature
(byte[] receivedSignature, byte[] data, String password, int iterate, byte[] receivedsalt)
-
Constructor Details
-
PasswordDerivedKey
public PasswordDerivedKey()
-
-
Method Details
-
generate160BitKey
public byte[] generate160BitKey(String password, int iteration, byte[] reqsalt) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
generate16ByteKeyforEncryption
-
generateDerivedKeyforEncryption
public SecretKey generateDerivedKeyforEncryption(String password, String algorithm, int iteration) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
generateMAC
public byte[] generateMAC(byte[] data, String password, int iteration) throws InvalidKeyException, SignatureException, UnsupportedEncodingException -
get16ByteSalt
public byte[] get16ByteSalt() -
verifyEncryptionKey
public SecretKey verifyEncryptionKey(String password, int iterate, byte[] receivedSalt) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
verifyMACSignature
public boolean verifyMACSignature(byte[] receivedSignature, byte[] data, String password, int iterate, byte[] receivedsalt) throws UnsupportedEncodingException, InvalidKeyException, SignatureException -
testAlgorithm
-