Package org.apache.cxf.helpers
Class JavaUtils
java.lang.Object
org.apache.cxf.helpers.JavaUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the FIPS security provider name configured via thefips.security.providersystem property.static Integerstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanisJavaKeyword(String keyword) checks if the input string is a valid java keyword.static StringmakeNonJavaKeyword(String keyword) Turn a java keyword string into a non-Java keyword string.static voidsetJavaMajorVersion(Integer javaMajorVersion)
-
Method Details
-
isJavaKeyword
checks if the input string is a valid java keyword.- Returns:
- boolean true/false
-
makeNonJavaKeyword
Turn a java keyword string into a non-Java keyword string. (Right now this simply means appending an underscore.) -
isJava9Compatible
public static boolean isJava9Compatible() -
isJava11Compatible
public static boolean isJava11Compatible() -
isJava8Before161
public static boolean isJava8Before161() -
isFIPSEnabled
public static boolean isFIPSEnabled() -
getFIPSSecurityProvider
Returns the FIPS security provider name configured via thefips.security.providersystem property. If not set, returnsnull. -
setJavaMajorVersion
-
getJavaMajorVersion
-