Package com.klaytn.caver.crypto
Class KlayCredentials
- java.lang.Object
-
- com.klaytn.caver.crypto.KlayCredentials
-
@Deprecated public class KlayCredentials extends java.lang.Object
Deprecated.Please use KeyringClass instead.- See Also:
AbstractKeyring
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static KlayCredentials
create(java.lang.String privateKey)
Deprecated.Static method for creating KlayCredentials instance Use address extracted from private keystatic KlayCredentials
create(java.lang.String[] privateKeyArrayForTransaction, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instancestatic KlayCredentials
create(java.lang.String[] privateKeyArrayForTransaction, java.lang.String[] privateKeyArrayForUpdate, java.lang.String[] privateKeyArrayForFeePayer, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instancestatic KlayCredentials
create(java.lang.String privateKey, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instancestatic KlayCredentials
create(java.util.List<org.web3j.crypto.ECKeyPair> ecKeyPair, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instancestatic KlayCredentials
create(java.util.List<org.web3j.crypto.ECKeyPair> ecKeyPairForTransaction, java.util.List<org.web3j.crypto.ECKeyPair> ecKeyPairForUpdate, java.util.List<org.web3j.crypto.ECKeyPair> ecKeyPairForFeePayer, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instancestatic KlayCredentials
create(org.web3j.crypto.ECKeyPair ecKeyPair)
Deprecated.Static method for creating KlayCredentials instance Use address extracted from private keystatic KlayCredentials
create(org.web3j.crypto.ECKeyPair[] ecKeyPairsArrayForTransaction, org.web3j.crypto.ECKeyPair[] ecKeyPairsArrayForUpdate, org.web3j.crypto.ECKeyPair[] ecKeyPairArrayForFeePayer, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instancestatic KlayCredentials
create(org.web3j.crypto.ECKeyPair ecKeyPair, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instancestatic KlayCredentials
createRoleBased(java.util.List<java.util.List<org.web3j.crypto.ECKeyPair>> ecKeyPairListForRoleBased, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instancestatic KlayCredentials
createWithKlaytnWalletKey(java.lang.String klaytnWalletKey)
Deprecated.boolean
equals(java.lang.Object o)
Deprecated.java.lang.String
getAddress()
Deprecated.org.web3j.crypto.ECKeyPair
getEcKeyPair()
Deprecated.java.util.List<org.web3j.crypto.ECKeyPair>
getEcKeyPairsForFeePayerList()
Deprecated.Returns keys for fee payer signingjava.util.List<org.web3j.crypto.ECKeyPair>
getEcKeyPairsForTransactionList()
Deprecated.Returns keys for transaction signingjava.util.List<org.web3j.crypto.ECKeyPair>
getEcKeyPairsForUpdateList()
Deprecated.Returns keys for update signingjava.lang.String
getKlaytnWalletKey()
Deprecated.java.util.List<java.util.List<org.web3j.crypto.ECKeyPair>>
getRawEcKeyPairs()
Deprecated.Returns raw keys.int
hashCode()
Deprecated.
-
-
-
Method Detail
-
getEcKeyPair
@Deprecated public org.web3j.crypto.ECKeyPair getEcKeyPair()
Deprecated.
-
getEcKeyPairsForTransactionList
public java.util.List<org.web3j.crypto.ECKeyPair> getEcKeyPairsForTransactionList() throws java.lang.RuntimeException
Deprecated.Returns keys for transaction signing- Returns:
- List ECKeyPair List for transaction Signing
- Throws:
java.lang.RuntimeException
- If there is no key for Transaction signing
-
getEcKeyPairsForUpdateList
public java.util.List<org.web3j.crypto.ECKeyPair> getEcKeyPairsForUpdateList() throws java.lang.RuntimeException
Deprecated.Returns keys for update signing- Returns:
- List ECKeyPair List for update Signing
- Throws:
java.lang.RuntimeException
- If there is no key for update signing
-
getEcKeyPairsForFeePayerList
public java.util.List<org.web3j.crypto.ECKeyPair> getEcKeyPairsForFeePayerList() throws java.lang.RuntimeException
Deprecated.Returns keys for fee payer signing- Returns:
- List ECKeyPair List for fee payer Signing
- Throws:
java.lang.RuntimeException
- If there is no key for fee payer signing
-
getRawEcKeyPairs
public java.util.List<java.util.List<org.web3j.crypto.ECKeyPair>> getRawEcKeyPairs()
Deprecated.Returns raw keys. getEcKeyPairsFor(Role)List returns the keys that play the role. but getRawEcKeyPair returns the key pair as it is, regardless of role.- Returns:
- List ECKeyPair List
-
getAddress
public java.lang.String getAddress()
Deprecated.
-
create
public static KlayCredentials create(java.lang.String privateKey)
Deprecated.Static method for creating KlayCredentials instance Use address extracted from private key- Parameters:
privateKey
- private key for transaction signing- Returns:
- KlayCredentials
-
create
public static KlayCredentials create(org.web3j.crypto.ECKeyPair ecKeyPair)
Deprecated.Static method for creating KlayCredentials instance Use address extracted from private key- Parameters:
ecKeyPair
- ecKeyPair for transaction signing- Returns:
- KlayCredentials
-
create
public static KlayCredentials create(java.lang.String privateKey, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instance- Parameters:
privateKey
- private key for transaction signingaddress
- address of account- Returns:
- KlayCredentials
-
create
public static KlayCredentials create(org.web3j.crypto.ECKeyPair ecKeyPair, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instance- Parameters:
ecKeyPair
- ecKeyPair for transaction signingaddress
- address of account- Returns:
- KlayCredentials
-
create
public static KlayCredentials create(java.util.List<org.web3j.crypto.ECKeyPair> ecKeyPair, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instance- Parameters:
ecKeyPair
- ecKeyPair for transaction signingaddress
- address of account- Returns:
- KlayCredentials
-
create
public static KlayCredentials create(java.util.List<org.web3j.crypto.ECKeyPair> ecKeyPairForTransaction, java.util.List<org.web3j.crypto.ECKeyPair> ecKeyPairForUpdate, java.util.List<org.web3j.crypto.ECKeyPair> ecKeyPairForFeePayer, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instance- Parameters:
ecKeyPairForTransaction
- ecKeyPair list for transaction signingecKeyPairForUpdate
- ecKeyPair list for update signingecKeyPairForFeePayer
- ecKeyPair list for fee payer signingaddress
- address of account- Returns:
- KlayCredentials
-
create
public static KlayCredentials create(org.web3j.crypto.ECKeyPair[] ecKeyPairsArrayForTransaction, org.web3j.crypto.ECKeyPair[] ecKeyPairsArrayForUpdate, org.web3j.crypto.ECKeyPair[] ecKeyPairArrayForFeePayer, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instance- Parameters:
ecKeyPairsArrayForTransaction
- ecKeyPair array for transaction signingecKeyPairsArrayForUpdate
- ecKeyPair array for update signingecKeyPairArrayForFeePayer
- ecKeyPair array for fee payer signingaddress
- address of account- Returns:
- KlayCredentials
-
create
public static KlayCredentials create(java.lang.String[] privateKeyArrayForTransaction, java.lang.String[] privateKeyArrayForUpdate, java.lang.String[] privateKeyArrayForFeePayer, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instance- Parameters:
privateKeyArrayForTransaction
- private key array for transaction signingprivateKeyArrayForUpdate
- private key array for transaction signingprivateKeyArrayForFeePayer
- private key array for transaction signingaddress
- address of account- Returns:
- KlayCredentials
-
createRoleBased
public static KlayCredentials createRoleBased(java.util.List<java.util.List<org.web3j.crypto.ECKeyPair>> ecKeyPairListForRoleBased, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instance- Parameters:
ecKeyPairListForRoleBased
- ecKeyPairList for role-base signingaddress
- address of account- Returns:
- KlayCredentials
-
create
public static KlayCredentials create(java.lang.String[] privateKeyArrayForTransaction, java.lang.String address)
Deprecated.Static method for creating KlayCredentials instance- Parameters:
privateKeyArrayForTransaction
- private key array for transaction signingaddress
- address of account- Returns:
- KlayCredentials
-
createWithKlaytnWalletKey
public static KlayCredentials createWithKlaytnWalletKey(java.lang.String klaytnWalletKey)
Deprecated.
-
getKlaytnWalletKey
public java.lang.String getKlaytnWalletKey()
Deprecated.
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
-