public final class WSSecurityUtil
extends java.lang.Object
Note: it's copied from Apache WSS4J developed at The Apache Software Foundation (http://www.apache.org/), or under the Apache License 2.0. The methods copied from other products/frameworks may be modified in this class.
WS-Security Utility methods.Modifier and Type | Method and Description |
---|---|
static java.lang.String |
doPasswordDigest(byte[] nonce,
byte[] created,
byte[] password) |
static java.lang.String |
doPasswordDigest(java.lang.String nonce,
java.lang.String created,
java.lang.String password) |
static byte[] |
generateDigest(byte[] inputBytes)
Generate a (SHA1) digest of the input bytes.
|
static byte[] |
generateNonce(int length)
Generate a nonce of the given length using the SHA1PRNG algorithm.
|
public static byte[] generateNonce(int length)
public static byte[] generateDigest(byte[] inputBytes)
inputBytes
- the bytes to digestpublic static java.lang.String doPasswordDigest(byte[] nonce, byte[] created, byte[] password)
public static java.lang.String doPasswordDigest(java.lang.String nonce, java.lang.String created, java.lang.String password)