Enum PowerAuthStep
- All Implemented Interfaces:
Serializable,Comparable<PowerAuthStep>,java.lang.constant.Constable
public enum PowerAuthStep extends Enum<PowerAuthStep>
PowerAuth step enumeration
- Author:
- Lukas Lukovsky, lukas.lukovsky@wultra.com
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVATION_CREATECreation of new activation using custom identity attributesACTIVATION_CREATE_CUSTOMCreation of new activationACTIVATION_PREPAREDeprecated.ACTIVATION_RECOVERYRecovering an activationACTIVATION_REMOVERemoval of an existing activationACTIVATION_STATUSStatus retrieval of an existing activationENCRYPTSend and verify an encrypted requestRECOVERY_CONFIRMConfirming an activation recoverySIGN_ENCRYPTSend and verify a signed and encrypted requestSIGNATURE_VERIFYVerifying a signed requestTOKEN_CREATECreating new tokenTOKEN_ENCRYPTSend an encrypted request with token-based authenticationTOKEN_REMOVERemoving a previously created tokenTOKEN_VALIDATEValidating a previously created tokenUPGRADE_COMMITCommitting upgrade from activation version 2 to version 3UPGRADE_STARTStarting upgrade from activation version 2 to version 3VAULT_UNLOCKUnlocking secure vault -
Method Summary
Modifier and Type Method Description Stringalias()Stringdescription()static PowerAuthStepfromMethod(String value)Detects a PowerAuth step from a provided valueStringid()static PowerAuthStepvalueOf(String name)Returns the enum constant of this type with the specified name.static PowerAuthStep[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACTIVATION_CREATE_CUSTOM
Creation of new activation -
ACTIVATION_CREATE
Creation of new activation using custom identity attributes -
ACTIVATION_PREPARE
Deprecated.Former creation of new activation -
ACTIVATION_REMOVE
Removal of an existing activation -
ACTIVATION_RECOVERY
Recovering an activation -
ACTIVATION_STATUS
Status retrieval of an existing activation -
ENCRYPT
Send and verify an encrypted request -
RECOVERY_CONFIRM
Confirming an activation recovery -
SIGN_ENCRYPT
Send and verify a signed and encrypted request -
SIGNATURE_VERIFY
Verifying a signed request -
TOKEN_CREATE
Creating new token -
TOKEN_ENCRYPT
Send an encrypted request with token-based authentication -
TOKEN_REMOVE
Removing a previously created token -
TOKEN_VALIDATE
Validating a previously created token -
UPGRADE_COMMIT
Committing upgrade from activation version 2 to version 3 -
UPGRADE_START
Starting upgrade from activation version 2 to version 3 -
VAULT_UNLOCK
Unlocking secure vault
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
alias
- Returns:
- Alis of the step
-
description
- Returns:
- Description of the step
-
id
- Returns:
- Unique identification of the step
-
fromMethod
Detects a PowerAuth step from a provided value- Parameters:
value- Value to detect the step from- Returns:
- PowerAuth step enum value matching the provided value
- Throws:
IllegalStateException- When the value is not recognized as a PowerAuth step
-