digest = new SHA256Digest();
} else if (alg.equals(JWSAlgorithm.ES384)) {
oid = SECObjectIdentifiers.secp384r1;
digest = new SHA384Digest();
} else if (alg.equals(JWSAlgorithm.ES512)) {
oid = SECObjectIdentifiers.secp521r1;
digest = new SHA512Digest();