@Test void test(){ assertThat(MessageDigestAlgorithm.create("SHA-256")).isEqualTo(MessageDigestAlgorithm.SHA256); }
@JsonCreator public static MessageDigestAlgorithm create(String jcaName){ return new MessageDigestAlgorithm(jcaName); }
MessageDigestAlgorithm { @JsonCreator public static MessageDigestAlgorithm create(String jcaName){ return new MessageDigestAlgorithm(jcaName); } }
MessageDigestAlgorithm { @JsonCreator public static MessageDigestAlgorithm create(String jcaName){ return new MessageDigestAlgorithm(jcaName); } private  MessageDigestAlgorithm(String jcaName); }
MessageDigestAlgorithm { @JsonCreator public static MessageDigestAlgorithm create(String jcaName){ return new MessageDigestAlgorithm(jcaName); } private  MessageDigestAlgorithm(String jcaName); @JsonCreator static MessageDigestAlgorithm create(String jcaName); @JsonValue String getJcaName(); MessageDigest createMessageDigestObject(); @Override boolean equals(Object o); @Override int hashCode(); }
MessageDigestAlgorithm { @JsonCreator public static MessageDigestAlgorithm create(String jcaName){ return new MessageDigestAlgorithm(jcaName); } private  MessageDigestAlgorithm(String jcaName); @JsonCreator static MessageDigestAlgorithm create(String jcaName); @JsonValue String getJcaName(); MessageDigest createMessageDigestObject(); @Override boolean equals(Object o); @Override int hashCode(); static final MessageDigestAlgorithm SHA1; static final MessageDigestAlgorithm SHA256; static final MessageDigestAlgorithm SHA384; static final MessageDigestAlgorithm SHA512; }