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