public final class WSSecurityUtil extends 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 String |
doPasswordDigest(byte[] nonce,
byte[] created,
byte[] password)
Do password digest.
|
static String |
doPasswordDigest(String nonce,
String created,
String password)
Do password digest.
|
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)
length - public static byte[] generateDigest(byte[] inputBytes)
inputBytes - the bytes to digestpublic static String doPasswordDigest(byte[] nonce, byte[] created, byte[] password)
nonce - created - password - Copyright © 2021. All rights reserved.