public enum CryptoKeyType extends java.lang.Enum<CryptoKeyType> implements XdrElement
enum CryptoKeyType { KEY_TYPE_ED25519 = 0, KEY_TYPE_PRE_AUTH_TX = 1, KEY_TYPE_HASH_X = 2, KEY_TYPE_ED25519_SIGNED_PAYLOAD = 3, // MUXED enum values for supported type are derived from the enum values // above by ORing them with 0x100 KEY_TYPE_MUXED_ED25519 = 0x100 };
Enum Constant and Description |
---|
KEY_TYPE_ED25519 |
KEY_TYPE_ED25519_SIGNED_PAYLOAD |
KEY_TYPE_HASH_X |
KEY_TYPE_MUXED_ED25519 |
KEY_TYPE_PRE_AUTH_TX |
Modifier and Type | Method and Description |
---|---|
static CryptoKeyType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static CryptoKeyType |
fromXdrBase64(java.lang.String xdr) |
static CryptoKeyType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static CryptoKeyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CryptoKeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toXdrBase64, toXdrByteArray
public static final CryptoKeyType KEY_TYPE_ED25519
public static final CryptoKeyType KEY_TYPE_PRE_AUTH_TX
public static final CryptoKeyType KEY_TYPE_HASH_X
public static final CryptoKeyType KEY_TYPE_ED25519_SIGNED_PAYLOAD
public static final CryptoKeyType KEY_TYPE_MUXED_ED25519
public static CryptoKeyType[] values()
for (CryptoKeyType c : CryptoKeyType.values()) System.out.println(c);
public static CryptoKeyType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static CryptoKeyType decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static CryptoKeyType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static CryptoKeyType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException