Package com.saperion.util
Class CryptoUtil
java.lang.Object
com.saperion.util.CryptoUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
compute
(byte[] key, String url, CryptoUtil.HashAlogrithmn algorithmn) static boolean
static boolean
valid
(byte[] key, String url, String hash, CryptoUtil.HashAlogrithmn algorithmn)
-
Constructor Details
-
CryptoUtil
public CryptoUtil()
-
-
Method Details
-
compute
public static String compute(byte[] key, String url) throws NoSuchAlgorithmException, InvalidKeyException, IllegalStateException, UnsupportedEncodingException -
compute
public static String compute(byte[] key, String url, CryptoUtil.HashAlogrithmn algorithmn) throws NoSuchAlgorithmException, InvalidKeyException, IllegalStateException, UnsupportedEncodingException -
valid
public static boolean valid(byte[] key, String url, String hash) throws GeneralSecurityException, UnsupportedEncodingException -
valid
public static boolean valid(byte[] key, String url, String hash, CryptoUtil.HashAlogrithmn algorithmn) throws GeneralSecurityException, UnsupportedEncodingException
-