Class 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 key
      static KlayCredentials create​(java.lang.String[] privateKeyArrayForTransaction, java.lang.String address)
      Deprecated.
      Static method for creating KlayCredentials instance
      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
      static KlayCredentials create​(java.lang.String privateKey, java.lang.String address)
      Deprecated.
      Static method for creating KlayCredentials instance
      static KlayCredentials create​(java.util.List<org.web3j.crypto.ECKeyPair> ecKeyPair, java.lang.String address)
      Deprecated.
      Static method for creating KlayCredentials instance
      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
      static KlayCredentials create​(org.web3j.crypto.ECKeyPair ecKeyPair)
      Deprecated.
      Static method for creating KlayCredentials instance Use address extracted from private key
      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
      static KlayCredentials create​(org.web3j.crypto.ECKeyPair ecKeyPair, java.lang.String address)
      Deprecated.
      Static method for creating KlayCredentials instance
      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
      static 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 signing
      java.util.List<org.web3j.crypto.ECKeyPair> getEcKeyPairsForTransactionList()
      Deprecated.
      Returns keys for transaction signing
      java.util.List<org.web3j.crypto.ECKeyPair> getEcKeyPairsForUpdateList()
      Deprecated.
      Returns keys for update signing
      java.lang.String getKlaytnWalletKey()
      Deprecated.
       
      java.util.List<java.util.List<org.web3j.crypto.ECKeyPair>> getRawEcKeyPairs()
      Deprecated.
      Returns raw keys.
      int hashCode()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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 signing
        address - 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 signing
        address - 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 signing
        address - 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 signing
        ecKeyPairForUpdate - ecKeyPair list for update signing
        ecKeyPairForFeePayer - ecKeyPair list for fee payer signing
        address - 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 signing
        ecKeyPairsArrayForUpdate - ecKeyPair array for update signing
        ecKeyPairArrayForFeePayer - ecKeyPair array for fee payer signing
        address - 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 signing
        privateKeyArrayForUpdate - private key array for transaction signing
        privateKeyArrayForFeePayer - private key array for transaction signing
        address - 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 signing
        address - 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 signing
        address - 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object