org.mozilla.jss.crypto
Class SignatureAlgorithm
java.lang.Object
|
+--org.mozilla.jss.crypto.Algorithm
|
+--org.mozilla.jss.crypto.SignatureAlgorithm
- public class SignatureAlgorithm
- extends Algorithm
Algorithms that can be used for signing.
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
RSASignature
public static final SignatureAlgorithm RSASignature
- Raw RSA signing. This algorithm does not do any hashing, it merely
encrypts its input, which should be a hash.
DSASignature
public static final SignatureAlgorithm DSASignature
- Raw DSA signing. This algorithm does not do any hashing, it merely
encrypts its input, which should be a hash.
RSASignatureWithMD2Digest
public static final SignatureAlgorithm RSASignatureWithMD2Digest
RSASignatureWithMD5Digest
public static final SignatureAlgorithm RSASignatureWithMD5Digest
RSASignatureWithSHA1Digest
public static final SignatureAlgorithm RSASignatureWithSHA1Digest
DSASignatureWithSHA1Digest
public static final SignatureAlgorithm DSASignatureWithSHA1Digest
fromOID
public static SignatureAlgorithm fromOID(OBJECT_IDENTIFIER oid)
throws java.security.NoSuchAlgorithmException
- Looks up the signature algorithm with the given OID.
- Throws:
- java.security.NoSuchAlgorithmException - If no algorithm is found with this
OID.
getSigningAlg
public Algorithm getSigningAlg()
- The raw encryption portion of the signature algorithm. For example,
SignatureAlgorithm.RSASignatureWithMD2Digest.getSigningAlg ==
SignatureAlgorithm.RSASignature.
getRawAlg
public SignatureAlgorithm getRawAlg()
getDigestAlg
public DigestAlgorithm getDigestAlg()
throws java.security.NoSuchAlgorithmException
- The digest portion of the signature algorithm.