Lines Matching defs:AlgorithmId
59 public class AlgorithmId implements Serializable, DerEncoder {
87 public AlgorithmId() { }
94 public AlgorithmId(ObjectIdentifier oid) {
104 public AlgorithmId(ObjectIdentifier oid, AlgorithmParameters algparams) {
110 private AlgorithmId(ObjectIdentifier oid, DerValue params)
137 * Marshal a DER-encoded "AlgorithmID" sequence on the DER stream.
168 // Several AlgorithmId should omit the whole parameter part when
202 * Returns the DER-encoded X.509 AlgorithmId as a byte array.
236 AlgorithmId paramsId =
237 AlgorithmId.parse(new DerValue(getEncodedParams()));
274 public boolean equals(AlgorithmId other) {
281 * Compares this AlgorithmID to another. If algorithm parameters are
285 * @param other preferably an AlgorithmId, else an ObjectIdentifier
291 if (other instanceof AlgorithmId) {
292 return equals((AlgorithmId) other);
309 * Returns a hashcode for this AlgorithmId.
311 * @return a hashcode for this AlgorithmId.
354 public static AlgorithmId parse(DerValue val) throws IOException {
382 return new AlgorithmId(algid, params);
394 public static AlgorithmId getAlgorithmId(String algname)
406 public static AlgorithmId get(String algname)
420 return new AlgorithmId(oid);
430 public static AlgorithmId get(AlgorithmParameters algparams)
444 return new AlgorithmId(oid, algparams);
471 return AlgorithmId.MD5_oid;
474 return AlgorithmId.MD2_oid;
478 return AlgorithmId.SHA_oid;
482 return AlgorithmId.SHA256_oid;
486 return AlgorithmId.SHA384_oid;
490 return AlgorithmId.SHA512_oid;
494 return AlgorithmId.SHA224_oid;
499 return AlgorithmId.RSAEncryption_oid;
503 return AlgorithmId.DH_oid;
506 return AlgorithmId.DSA_oid;
512 return AlgorithmId.ECDH_oid;
517 return AlgorithmId.AES_oid;
523 return AlgorithmId.md5WithRSAEncryption_oid;
527 return AlgorithmId.md2WithRSAEncryption_oid;
536 return AlgorithmId.sha1WithDSA_oid;
539 return AlgorithmId.sha224WithDSA_oid;
542 return AlgorithmId.sha256WithDSA_oid;
546 return AlgorithmId.sha1WithRSAEncryption_oid;
550 return AlgorithmId.sha1WithECDSA_oid;
553 return AlgorithmId.sha224WithECDSA_oid;
556 return AlgorithmId.sha256WithECDSA_oid;
559 return AlgorithmId.sha384WithECDSA_oid;
562 return AlgorithmId.sha512WithECDSA_oid;