Class SodiumKey
java.lang.Object
io.aether.crypto.sodium.SodiumKey
- All Implemented Interfaces:
io.aether.crypto.AKey, io.aether.crypto.CryptoProviderUnit, io.aether.utils.ToString
- Direct Known Subclasses:
SodiumKey.AsymmetricPrivate, SodiumKey.AsymmetricPublic, SodiumKey.SignPrivate, SodiumKey.SignPublic, SodiumKey.Symmetric
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final byte[]protected final io.aether.crypto.KeyTypeprotected final Stringstatic final byte[] -
Constructor Summary
Constructors -
Method Summary
Methods inherited from interface io.aether.crypto.AKey
asAsymmetric, asSignPrivate, asSignPublic, asSymmetric, toSignedKey, toSignedKeyMethods inherited from interface io.aether.utils.ToString
toString, toString2
-
Field Details
-
data
protected final byte[] data -
keyType
protected final io.aether.crypto.KeyType keyType -
providerName
- See Also:
-
SODIUM_LIB_CTX
public static final byte[] SODIUM_LIB_CTX
-
-
Constructor Details
-
SodiumKey
protected SodiumKey(byte[] data, io.aether.crypto.KeyType keyType)
-
-
Method Details
-
getData
public byte[] getData()- Specified by:
getDatain interfaceio.aether.crypto.AKey
-
getKeyType
public io.aether.crypto.KeyType getKeyType()- Specified by:
getKeyTypein interfaceio.aether.crypto.AKey
-
getProviderName
- Specified by:
getProviderNamein interfaceio.aether.crypto.CryptoProviderUnit
-
getCryptoProvider
public io.aether.crypto.CryptoProvider getCryptoProvider()- Specified by:
getCryptoProviderin interfaceio.aether.crypto.CryptoProviderUnit
-
size
public int size()- Specified by:
sizein interfaceio.aether.crypto.AKey
-
keyToString
- Specified by:
keyToStringin interfaceio.aether.crypto.AKey
-
toString
-
equals
-
hashCode
-