| 465 | } |
| 466 | |
| 467 | private void validate() |
| 468 | { |
| 469 | if (authenticationPath == null) |
| 470 | { |
| 471 | throw new IllegalStateException("authenticationPath == null"); |
| 472 | } |
| 473 | if (retain == null) |
| 474 | { |
| 475 | throw new IllegalStateException("retain == null"); |
| 476 | } |
| 477 | if (stack == null) |
| 478 | { |
| 479 | throw new IllegalStateException("stack == null"); |
| 480 | } |
| 481 | if (treeHashInstances == null) |
| 482 | { |
| 483 | throw new IllegalStateException("treeHashInstances == null"); |
| 484 | } |
| 485 | if (keep == null) |
| 486 | { |
| 487 | throw new IllegalStateException("keep == null"); |
| 488 | } |
| 489 | if (!XMSSUtil.isIndexValid(treeHeight, index)) |
| 490 | { |
| 491 | throw new IllegalStateException("index in BDS state out of bounds"); |
| 492 | } |
| 493 | } |
| 494 | |
| 495 | protected int getTreeHeight() |
| 496 | { |