Package de.adorsys.psd2.xs2a.core.sca
Enum ScaStatus
- java.lang.Object
-
- java.lang.Enum<ScaStatus>
-
- de.adorsys.psd2.xs2a.core.sca.ScaStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ScaStatus>
public enum ScaStatus extends Enum<ScaStatus>
This data element is containing information about the status of the SCA method applied.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXEMPTEDSCA was exempted for the related transaction, the related authorisation is successful.FAILEDThe SCA routine failed.FINALISEDThe SCA routine has been finalised successfully.PSUAUTHENTICATEDThe PSU related to the authorisation or cancellation-authorisation resource has been identified and authenticated e.g.PSUIDENTIFIEDThe PSU related to the authorisation or cancellation-authorisation resource has been identified.RECEIVEDAn authorisation or cancellation-authorisation resource has been created successfully.SCAMETHODSELECTEDThe PSU/TPP has selected the related SCA routine.STARTEDThe addressed SCA routine has been started.UNCONFIRMEDAuthorisation is technically successfully finalised by the PSU, but the authorisation resource needs a confirmation command by the TPP yet
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScaStatusfromValue(String text)Maps textual representation to ScaStatus enum-value.StringgetValue()Provides a textual representation to be used i.e.booleanisFinalisedStatus()booleanisNotFinalisedStatus()static ScaStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ScaStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RECEIVED
public static final ScaStatus RECEIVED
An authorisation or cancellation-authorisation resource has been created successfully.
-
PSUIDENTIFIED
public static final ScaStatus PSUIDENTIFIED
The PSU related to the authorisation or cancellation-authorisation resource has been identified.
-
PSUAUTHENTICATED
public static final ScaStatus PSUAUTHENTICATED
The PSU related to the authorisation or cancellation-authorisation resource has been identified and authenticated e.g. by a password or by an access token.
-
SCAMETHODSELECTED
public static final ScaStatus SCAMETHODSELECTED
The PSU/TPP has selected the related SCA routine. If the SCA method is chosen implicitly since only one SCA method is available, then this is the first status to be reported instead ofRECEIVED
-
STARTED
public static final ScaStatus STARTED
The addressed SCA routine has been started.
-
FINALISED
public static final ScaStatus FINALISED
The SCA routine has been finalised successfully.
-
FAILED
public static final ScaStatus FAILED
The SCA routine failed.
-
EXEMPTED
public static final ScaStatus EXEMPTED
SCA was exempted for the related transaction, the related authorisation is successful.
-
UNCONFIRMED
public static final ScaStatus UNCONFIRMED
Authorisation is technically successfully finalised by the PSU, but the authorisation resource needs a confirmation command by the TPP yet
-
-
Method Detail
-
values
public static ScaStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ScaStatus c : ScaStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScaStatus valueOf(String name)
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
-
fromValue
public static ScaStatus fromValue(String text)
Maps textual representation to ScaStatus enum-value. Mapping is performed case-insensitive.- Parameters:
text- - text to be mapped.- Returns:
- Enum value mapped. Null otherwise.
-
isFinalisedStatus
public boolean isFinalisedStatus()
-
isNotFinalisedStatus
public boolean isNotFinalisedStatus()
-
getValue
public String getValue()
Provides a textual representation to be used i.e. in JSON-Serialization.- Returns:
- a textual representation according to Berlin Group Implementation Guidelines
-
-