Tabnine Logo
StringUtils.base64Decode
Code IndexAdd Tabnine to your IDE (free)

How to use
base64Decode
method
in
com.kloudtek.util.StringUtils

Best Java code snippets using com.kloudtek.util.StringUtils.base64Decode (Showing top 6 results out of 315)

origin: com.kloudtek.idvkey.sdk/idvkey-sdk-java

/**
 * Constructor
 *
 * @param keyId     Key id
 * @param base64Key A {@link SignAndVerifyKey} key
 * @throws InvalidKeyException if the key was invalid
 */
public IDVKeyAPIClient(String keyId, KeyType keyType, String base64Key) throws InvalidKeyException {
  this(keyId, keyType, base64Decode(base64Key));
}
origin: com.kloudtek.kryptotek/kryptotek-core

public DHParameters(String base64Encoded) {
  this(StringUtils.base64Decode(base64Encoded));
}
origin: com.kloudtek.kryptotek/kryptotek-core

/**
 * Compare a salted digest to some data.
 *
 * @param b64Digest Base 64 encoded Salted digest
 * @param data      Data to validate digest again
 * @param alg       Algorithm to use for digest
 * @return True if the data matches the digest
 */
public static boolean compareSaltedDigest(String b64Digest, String data, DigestAlgorithm alg) {
  return compareSaltedDigest(StringUtils.base64Decode(b64Digest), data.getBytes(), alg);
}
origin: com.kloudtek.idvkey.sdk/idvkey-sdk-api

@JsonIgnore
public HMACKey getHMACKey() throws InvalidKeyException {
  if (type != KeyType.HMAC_SHA256) {
    throw new IllegalArgumentException("Key is not an HMAC_SHA256 Key: " + type.name());
  }
  return CryptoUtils.readHMACKey(DigestAlgorithm.SHA256, StringUtils.base64Decode(value));
}
origin: com.kloudtek.kryptotek/kryptotek-rest-client-httpcomponents

private void verifySignature(String signature, byte[] signedData, SignatureVerificationKey serverKey, DigestAlgorithm digestAlgorithm) throws InvalidKeyException, SignatureException {
  final byte[] signatureData = StringUtils.base64Decode(signature);
  if (logger.isLoggable(FINE)) {
    logger.fine("Verifying REST response - key: " + CryptoUtils.fingerprint(serverKey.getEncoded().getEncodedKey())
        + " alg: " + digestAlgorithm + " data: " + CryptoUtils.fingerprint(signedData) + " signature: " + CryptoUtils.fingerprint(signatureData));
  }
  cryptoEngine.verifySignature(serverKey, digestAlgorithm, signedData, signatureData);
}
origin: com.kloudtek.ktutils/ktutils

  return base64Encode(utf8(resolveVarSub(functionParams,provisioningParams, neverFail)));
} else if (functionName.equals("db64")) {
  return utf8(base64Decode(resolveVarSub(functionParams,provisioningParams, neverFail)));
} else if (functionName.equals("t")) {
  return functionParams;
com.kloudtek.utilStringUtilsbase64Decode

Popular methods of StringUtils

  • isBlank
  • utf8
    Convert UTF-8 encoded byte arrays to a string
  • base64Encode
  • isEmpty
  • isNotBlank
  • urlEncode
    URL encode a string using UTF-8
  • base32Decode
  • base32Encode
  • isNotEmpty
  • substituteVariables
    Substitute variables in a string.
  • toHex
  • urlPathEncode
  • toHex,
  • urlPathEncode,
  • capitalize,
  • containsVariableSubstitution,
  • getVarSubFuncPattern,
  • nextChar,
  • resolveVarSub,
  • resolveVarSubFail,
  • splitTwoArgFunction

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JCheckBox (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now