Module java4ever.binding
Package tech.deplant.java4ever.binding
Record Class Crypto.CryptoBoxSecret.PredefinedSeedPhrase
java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Crypto.CryptoBoxSecret.PredefinedSeedPhrase
- All Implemented Interfaces:
Crypto.CryptoBoxSecret
- Enclosing interface:
Crypto.CryptoBoxSecret
public static record Crypto.CryptoBoxSecret.PredefinedSeedPhrase(String phrase, Crypto.MnemonicDictionary dictionary, Integer wordcount)
extends Record
implements Crypto.CryptoBoxSecret
This type should be used only upon the first wallet initialization, all further
initializations should use `EncryptedSecret` type instead.
Get `encrypted_secret` with `get_crypto_box_info` function and store it on your side. Restores crypto box instance from an existing seed phrase. This type should be used when Crypto Box is initialized from a seed phrase, entered by a user.
-
Nested Class Summary
Nested classes/interfaces inherited from interface tech.deplant.java4ever.binding.Crypto.CryptoBoxSecret
Crypto.CryptoBoxSecret.EncryptedSecret, Crypto.CryptoBoxSecret.PredefinedSeedPhrase, Crypto.CryptoBoxSecret.RandomSeedPhrase -
Constructor Summary
ConstructorsConstructorDescriptionPredefinedSeedPhrase(String phrase, Crypto.MnemonicDictionary dictionary, Integer wordcount) Creates an instance of aPredefinedSeedPhraserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedictionaryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.phrase()Returns the value of thephraserecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thewordcountrecord component.
-
Constructor Details
-
PredefinedSeedPhrase
Creates an instance of aPredefinedSeedPhraserecord class.- Parameters:
phrase- the value for thephraserecord componentdictionary- the value for thedictionaryrecord componentwordcount- the value for thewordcountrecord component
-
-
Method Details
-
type
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
phrase
Returns the value of thephraserecord component.- Returns:
- the value of the
phraserecord component
-
dictionary
Returns the value of thedictionaryrecord component.- Returns:
- the value of the
dictionaryrecord component
-
wordcount
Returns the value of thewordcountrecord component.- Returns:
- the value of the
wordcountrecord component
-