com.sun.xml.ws.security.impl
Class PasswordDerivedKey
java.lang.Object
com.sun.xml.ws.security.impl.PasswordDerivedKey
public class PasswordDerivedKey
- extends Object
|
Method Summary |
byte[] |
generate160BitKey(String password,
int iteration,
byte[] reqsalt)
|
SecretKey |
generate16ByteKeyforEncryption(byte[] keyof20Bytes)
|
SecretKey |
generateDerivedKeyforEncryption(String password,
String algorithm,
int iteration)
|
byte[] |
generateMAC(byte[] data,
String password,
int iteration)
|
byte[] |
get16ByteSalt()
|
boolean |
testAlgorithm(String algo)
|
SecretKey |
verifyEncryptionKey(String password,
int iterate,
byte[] receivedSalt)
|
boolean |
verifyMACSignature(byte[] receivedSignature,
byte[] data,
String password,
int iterate,
byte[] receivedsalt)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasswordDerivedKey
public PasswordDerivedKey()
generate160BitKey
public byte[] generate160BitKey(String password,
int iteration,
byte[] reqsalt)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
generate16ByteKeyforEncryption
public SecretKey generate16ByteKeyforEncryption(byte[] keyof20Bytes)
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
- 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
- Throws:
UnsupportedEncodingException
InvalidKeyException
SignatureException
testAlgorithm
public boolean testAlgorithm(String algo)
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.