java.lang.Object
java.lang.Enum<EncryptorId>
io.getlime.security.powerauth.crypto.lib.encryptor.model.EncryptorId
All Implemented Interfaces:
Serializable, Comparable<EncryptorId>, Constable

public enum EncryptorId extends Enum<EncryptorId>
Enumeration with constants for parameter sharedInfo1.
  • Enum Constant Details

    • APPLICATION_SCOPE_GENERIC

      public static final EncryptorId APPLICATION_SCOPE_GENERIC
      Generic application encryption.
    • ACTIVATION_SCOPE_GENERIC

      public static final EncryptorId ACTIVATION_SCOPE_GENERIC
      Generic activation encryption.
    • ACTIVATION_LAYER_2

      public static final EncryptorId ACTIVATION_LAYER_2
      Activation layer 2 encryption.
    • UPGRADE

      public static final EncryptorId UPGRADE
      Upgrade protocol encryption.
    • VAULT_UNLOCK

      public static final EncryptorId VAULT_UNLOCK
      Vault unlock encryption.
    • CREATE_TOKEN

      public static final EncryptorId CREATE_TOKEN
      Create token encryption.
    • CONFIRM_RECOVERY_CODE

      public static final EncryptorId CONFIRM_RECOVERY_CODE
      Recovery code confirmation encryption.
  • Method Details

    • values

      public static EncryptorId[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EncryptorId valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public String value()
      Get identifier's value.
      Returns:
      String with encryptor's identifier.
    • scope

      public EncryptorScope scope()
      Get encryptor's scope;
      Returns:
      Encryptor's scope;
    • getEciesSharedInfo1

      public byte[] getEciesSharedInfo1(String protocolVersion)
      Get bytes of sharedInfo1 parameter for ECIES scheme.
      Parameters:
      protocolVersion - Version of protocol.
      Returns:
      Bytes of sharedInfo1 parameter for ECIES scheme.