public class Util extends 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(String value,
EncodeDecodeTypes defaultValue)
Helper method to decide encode decode types.
|
static boolean |
validatePasswords(String identityStorePass,
String identityKeyPass)
Helper method to validate store password and key password
|
public static boolean validatePasswords(String identityStorePass, 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(String value, EncodeDecodeTypes defaultValue)
value
- defaultValue
- public static byte[] append(byte[] value, byte[] toAppend)
value
- toAppend
- Copyright © 2005–2018 Apache Software Foundation. All rights reserved.