public class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
append(byte[] value,
byte[] toAppend)
Helper method to append encrypted parts to the response.
|
static EncodeDecodeTypes |
getEncodeDecodeType(java.lang.String value,
EncodeDecodeTypes defaultValue)
Helper method to decide encode decode types.
|
static boolean |
validatePasswords(java.lang.String identityStorePass,
java.lang.String identityKeyPass)
Helper method to validate store password and key password
|
public static boolean validatePasswords(java.lang.String identityStorePass, java.lang.String identityKeyPass)
Helper method to validate store password and key password
Note : this method will validate whether both the private key and the identity store password is present, if it's not present the validation will fail.
identityStorePass
- password of the identity storeidentityKeyPass
- identify store private key passwordpublic static EncodeDecodeTypes getEncodeDecodeType(java.lang.String value, EncodeDecodeTypes defaultValue)
value
- defaultValue
- public static byte[] append(byte[] value, byte[] toAppend)
value
- toAppend
- Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.