Class JCASupport


  • public final class JCASupport
    extends java.lang.Object
    Java Cryptography Architecture (JCA) support helper.
    Version:
    2022-05-16
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isSupported​(Algorithm alg)
      Checks if the specified JOSE algorithm is supported by the default system JCA provider(s).
      static boolean isSupported​(Algorithm alg, java.security.Provider provider)
      Checks if a JOSE algorithm is supported by the specified JCA provider.
      static boolean isSupported​(EncryptionMethod enc)
      Checks if the specified JWE encryption method is supported by the default system JCA provider(s).
      static boolean isSupported​(EncryptionMethod enc, java.security.Provider provider)
      Checks if a JWE encryption method is supported by the specified JCA provider.
      static boolean isSupported​(JWEAlgorithm alg)
      Checks if the specified JWE algorithm is supported by the default system JCA provider(s).
      static boolean isSupported​(JWEAlgorithm alg, java.security.Provider provider)
      Checks if a JWE algorithm is supported by the specified JCA provider.
      static boolean isSupported​(JWSAlgorithm alg)
      Checks if the specified JWS algorithm is supported by the default system JCA provider(s).
      static boolean isSupported​(JWSAlgorithm alg, java.security.Provider provider)
      Checks if a JWS algorithm is supported by the specified JCA provider.
      static boolean isUnlimitedStrength()
      Checks if unlimited cryptographic strength is supported.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isSupported

        public static boolean isSupported​(Algorithm alg)
        Checks if the specified JOSE algorithm is supported by the default system JCA provider(s).
        Parameters:
        alg - The JOSE algorithm. Must not be null.
        Returns:
        true if the JOSE algorithm is supported, else false.
      • isSupported

        public static boolean isSupported​(Algorithm alg,
                                          java.security.Provider provider)
        Checks if a JOSE algorithm is supported by the specified JCA provider.
        Parameters:
        alg - The JOSE algorithm. Must not be null.
        provider - The JCA provider. Must not be null.
        Returns:
        true if the JOSE algorithm is supported, else false.
      • isSupported

        public static boolean isSupported​(JWSAlgorithm alg)
        Checks if the specified JWS algorithm is supported by the default system JCA provider(s).
        Parameters:
        alg - The JWS algorithm. Must not be null.
        Returns:
        true if the JWS algorithm is supported, else false.
      • isSupported

        public static boolean isSupported​(JWSAlgorithm alg,
                                          java.security.Provider provider)
        Checks if a JWS algorithm is supported by the specified JCA provider.
        Parameters:
        alg - The JWS algorithm. Must not be null.
        provider - The JCA provider. Must not be null.
        Returns:
        true if the JWS algorithm is supported, else false.
      • isSupported

        public static boolean isSupported​(JWEAlgorithm alg)
        Checks if the specified JWE algorithm is supported by the default system JCA provider(s).
        Parameters:
        alg - The JWE algorithm. Must not be null.
        Returns:
        true if the JWE algorithm is supported, else false.
      • isSupported

        public static boolean isSupported​(JWEAlgorithm alg,
                                          java.security.Provider provider)
        Checks if a JWE algorithm is supported by the specified JCA provider.
        Parameters:
        alg - The JWE algorithm. Must not be null.
        provider - The JCA provider. Must not be null.
        Returns:
        true if the JWE algorithm is supported, else false.
      • isSupported

        public static boolean isSupported​(EncryptionMethod enc)
        Checks if the specified JWE encryption method is supported by the default system JCA provider(s).
        Parameters:
        enc - The JWE encryption method. Must not be null.
        Returns:
        true if the JWE algorithm is supported, else false.
      • isSupported

        public static boolean isSupported​(EncryptionMethod enc,
                                          java.security.Provider provider)
        Checks if a JWE encryption method is supported by the specified JCA provider.
        Parameters:
        enc - The JWE encryption method. Must not be null.
        provider - The JCA provider. Must not be null.
        Returns:
        true if the JWE encryption method is supported, else false.