com.venafi.vcert.sdk.utils.Is Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vcert-java Show documentation
Show all versions of vcert-java Show documentation
VCert is a Java library, SDK, designed to simplify key generation and enrollment of machine identities (also known as SSL/TLS certificates and keys) that comply with enterprise security policy by using the Venafi Platform or Venafi Cloud.
package com.venafi.vcert.sdk.utils;
import java.util.Collection;
public class Is {
public static boolean blank(Collection collection) {
return collection == null || collection.isEmpty();
}
public static boolean blank(byte[] array) {
return array == null || array.length == 0;
}
/**
*
* @param left
* @param right
* @return
* @see SO
* @see explanation
* @see Go version
*/
public static boolean equalsFold(String left, String right) {
return (left != null && right != null && left.toUpperCase().equals(right.toUpperCase()))
|| (left == null && right == null);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy