public final class JCASupport extends Object
| Modifier and Type | Method and Description |
|---|---|
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,
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,
Provider provider)
Checks if a JWE algorithm is supported by the 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,
Provider provider)
Checks if a JWS algorithm is supported by the the specified JCA
provider.
|
static boolean |
isUnlimitedStrength()
Checks if unlimited cryptographic strength is supported.
|
public static boolean isUnlimitedStrength()
true if unlimited cryptographic strength is
supported, false if not.public static boolean isSupported(JWSAlgorithm alg)
alg - The JWS algorithm. Must not be null.true if the JWS algorithm is supported, else
false.public static boolean isSupported(JWSAlgorithm alg, Provider provider)
alg - The JWS algorithm. Must not be null.provider - The JCA provider. Must not be null.true if the JWS algorithm is supported, else
false.public static boolean isSupported(JWEAlgorithm alg)
alg - The JWE algorithm. Must not be null.true if the JWE algorithm is supported, else
false.public static boolean isSupported(JWEAlgorithm alg, Provider provider)
alg - The JWE algorithm. Must not be null.provider - The JCA provider. Must not be null.true if the JWE algorithm is supported, else
false.public static boolean isSupported(EncryptionMethod enc)
enc - The JWE encryption method. Must not be null.true if the JWE algorithm is supported, else
false.public static boolean isSupported(EncryptionMethod enc, Provider provider)
enc - The JWE encryption method. Must not be null.provider - The JCA provider. Must not be null.true if the JWE encryption method is supported, else
false.Copyright © 2017 Connect2id Ltd.. All rights reserved.