public enum ScepHashAlgo extends Enum<ScepHashAlgo>
| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest(byte[] content) |
static ScepHashAlgo |
forNameOrOid(String nameOrOid) |
int |
getLength() |
String |
getName() |
String |
getOid() |
String |
hexDigest(byte[] content) |
static ScepHashAlgo |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScepHashAlgo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScepHashAlgo MD5
public static final ScepHashAlgo SHA1
public static final ScepHashAlgo SHA256
public static final ScepHashAlgo SHA512
public static ScepHashAlgo[] values()
for (ScepHashAlgo c : ScepHashAlgo.values()) System.out.println(c);
public static ScepHashAlgo 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 int getLength()
public String getOid()
public String getName()
public String hexDigest(byte[] content)
public byte[] digest(byte[] content)
public static ScepHashAlgo forNameOrOid(String nameOrOid)
Copyright © 2018. All rights reserved.