Package io.aether.crypto.sodium
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
public abstract class SodiumKey extends java.lang.Object implements io.aether.crypto.AKey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSodiumKey.AsymmetricPrivatestatic classSodiumKey.AsymmetricPublicstatic classSodiumKey.SignPrivatestatic classSodiumKey.SignPublicstatic classSodiumKey.Symmetric
-
Field Summary
Fields Modifier and Type Field Description protected byte[]dataprotected io.aether.crypto.KeyTypekeyTypeprotected java.lang.StringproviderName
-
Constructor Summary
Constructors Modifier Constructor Description protectedSodiumKey(byte[] data, io.aether.crypto.KeyType keyType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)io.aether.crypto.CryptoProvidergetCryptoProvider()byte[]getData()io.aether.crypto.KeyTypegetKeyType()java.lang.StringgetProviderName()inthashCode()java.lang.StringkeyToString()intsize()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
data
protected final byte[] data
-
keyType
protected final io.aether.crypto.KeyType keyType
-
providerName
protected final java.lang.String providerName
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public java.lang.String 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
public java.lang.String keyToString()
- Specified by:
keyToStringin interfaceio.aether.crypto.AKey
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-