Package org.kapott.hbci.manager
Enum HHDVersion
- java.lang.Object
-
- java.lang.Enum<HHDVersion>
-
- org.kapott.hbci.manager.HHDVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HHDVersion>
public enum HHDVersion extends java.lang.Enum<HHDVersion>
Kapselt die Erkennung der verschiedenen HHD-Versionen.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HHDVersion.Type
Definiert die Art des TAN-Verfahrens.
-
Enum Constant Summary
Enum Constants Enum Constant Description DECOUPLED
Push-TAN 2.0 (Decoupled)HHD_1_2
HHD-Version 1.2.HHD_1_3
HHD-Version 1.3 Zur HKTAN-Segment-Version: 1.4 ist in HKTAN4 noch nicht erlaubt, damit bleibt eigentlich nur 1.3HHD_1_4
HHD-Version 1.4 Zur HKTAN-Segment-Version: Genau wissen wir es nicht, aber HHD 1.4 ist wahrscheinlich.MS_1
Server-seitig generierter Matrix-Code (photoTAN) ZKA-Version und HKTAN-Version bleiben hier frei, weil wir anhand diesen Merkmalen das Matrix-Code-Verfahren nicht eindeutig erkennen koennen.QR_1_3
QR-Code in HHD-Version 1.3 - die Sparkasse verwendet das so.QR_1_4
QR-Code.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
challengeVersion
static HHDVersion
DEFAULT
Die Default-Version.private java.lang.String
idMatch
private java.lang.String
nameMatch
private int
segVersion
private HHDVersion.Type
type
private java.lang.String
versionStart
-
Constructor Summary
Constructors Modifier Constructor Description private
HHDVersion(HHDVersion.Type type, java.lang.String nameMatch)
ct.private
HHDVersion(HHDVersion.Type type, java.lang.String idMatch, java.lang.String versionStart, int segVersion, java.lang.String challengeVersion)
ct.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HHDVersion
find(java.util.Properties secmech)
Ermittelt die zu verwendende HHD-Version aus den BPD-Informationen des TAN-Verfahrens.java.lang.String
getChallengeVersion()
Liefert die Kennung fuer das Lookup in den ChallengeInfo-Daten.HHDVersion.Type
getType()
Liefert die Art des TAN-Verfahrens.static HHDVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HHDVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QR_1_3
public static final HHDVersion QR_1_3
QR-Code in HHD-Version 1.3 - die Sparkasse verwendet das so. Muss als erstes hier stehen, weil es sonst falsch als "HHD_1_3" erkannt wird (ID beginnt genauso).
-
QR_1_4
public static final HHDVersion QR_1_4
QR-Code.
-
HHD_1_4
public static final HHDVersion HHD_1_4
HHD-Version 1.4 Zur HKTAN-Segment-Version: Genau wissen wir es nicht, aber HHD 1.4 ist wahrscheinlich.
-
HHD_1_3
public static final HHDVersion HHD_1_3
HHD-Version 1.3 Zur HKTAN-Segment-Version: 1.4 ist in HKTAN4 noch nicht erlaubt, damit bleibt eigentlich nur 1.3
-
MS_1
public static final HHDVersion MS_1
Server-seitig generierter Matrix-Code (photoTAN) ZKA-Version und HKTAN-Version bleiben hier frei, weil wir anhand diesen Merkmalen das Matrix-Code-Verfahren nicht eindeutig erkennen koennen. Und da chipTAN/smsTAN deutlich gebrauechlicher ist, ist es erheblich wahrscheinlicher, dass dann nicht Matrix-Code ist. Generell unterstuetzen wir nur server-seitig generierte Matrix-Codes.
-
HHD_1_2
public static final HHDVersion HHD_1_2
HHD-Version 1.2. Fallback.
-
DECOUPLED
public static final HHDVersion DECOUPLED
Push-TAN 2.0 (Decoupled)
-
-
Field Detail
-
DEFAULT
public static final HHDVersion DEFAULT
Die Default-Version.
-
type
private HHDVersion.Type type
-
nameMatch
private java.lang.String nameMatch
-
idMatch
private java.lang.String idMatch
-
versionStart
private java.lang.String versionStart
-
segVersion
private int segVersion
-
challengeVersion
private java.lang.String challengeVersion
-
-
Constructor Detail
-
HHDVersion
private HHDVersion(HHDVersion.Type type, java.lang.String nameMatch)
ct.- Parameters:
type
- die Art des TAN-Verfahrens.nameMatch
- Pattern für DK-Verfahrensbezeichnung.
-
HHDVersion
private HHDVersion(HHDVersion.Type type, java.lang.String idMatch, java.lang.String versionStart, int segVersion, java.lang.String challengeVersion)
ct.- Parameters:
type
- die Art des TAN-Verfahrens.idMatch
- Pattern fuer die Technische Kennung. Siehe "Belegungsrichtlinien TANve1.4 mit Erratum 1-3 final version vom 2010-11-12.pdf" Der Name ist standardisiert, wenn er mit "HHD1...." beginnt, ist das die HHD-VersionversionStart
- ZKA-Version bei HKTAN.segVersion
- Segment-Version des HKTAN-Elements.challengeVersion
- die Kennung fuer das Lookup in den ChallengeInfo-Daten.
-
-
Method Detail
-
values
public static HHDVersion[] 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 (HHDVersion c : HHDVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HHDVersion valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getChallengeVersion
public java.lang.String getChallengeVersion()
Liefert die Kennung fuer das Lookup in den ChallengeInfo-Daten.- Returns:
- die Kennung fuer das Lookup in den ChallengeInfo-Daten.
-
getType
public HHDVersion.Type getType()
Liefert die Art des TAN-Verfahrens.- Returns:
- die Art des TAN-Verfahrens.
-
find
public static HHDVersion find(java.util.Properties secmech)
Ermittelt die zu verwendende HHD-Version aus den BPD-Informationen des TAN-Verfahrens.- Parameters:
secmech
- die BPD-Informationen zum TAN-Verfahren.- Returns:
- die HHD-Version.
-
-