public enum Algorithm extends Enum<Algorithm>
| Modifier and Type | Method and Description |
|---|---|
Hash |
hash(byte[] bytes) |
Hash |
hash(InputStream in) |
Hash |
hash(Path path) |
Hash |
hash(String origin) |
Hash |
hash(String origin,
Charset charset) |
Hash |
hash(de.team33.patterns.exceptional.dione.XSupplier<InputStream,IOException> streamable) |
String |
ident() |
static Algorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Algorithm MD5
public static final Algorithm SHA_1
public static final Algorithm SHA_256
public static final Algorithm SHA_512
public static Algorithm[] values()
for (Algorithm c : Algorithm.values()) System.out.println(c);
public static Algorithm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final String ident()
public final Hash hash(byte[] bytes)
public final Hash hash(de.team33.patterns.exceptional.dione.XSupplier<InputStream,IOException> streamable)
public final Hash hash(InputStream in) throws IOException
IOExceptionCopyright © 2024 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.