2
0

Initial implementation of questions support.

This commit is contained in:
Maarten Billemont
2018-05-14 12:24:15 -04:00
parent 38a357cb28
commit 8d7c351912
9 changed files with 191 additions and 24 deletions

View File

@@ -66,6 +66,11 @@ public abstract class MPAlgorithm {
*/
public abstract MPResultType mpw_default_login_type();
/**
* mpw: defaults: answer result type.
*/
public abstract MPResultType mpw_default_answer_type();
/**
* mpw: defaults: initial counter value.
*/

View File

@@ -256,6 +256,11 @@ public class MPAlgorithmV0 extends MPAlgorithm {
return MPResultType.GeneratedName;
}
@Override
public MPResultType mpw_default_answer_type() {
return MPResultType.GeneratedPhrase;
}
@Override
public UnsignedInteger mpw_default_counter() {
return UnsignedInteger.ONE;