Skip to content

Commit 53fcf2e

Browse files
committed
JavaDoc.
1 parent 22f6103 commit 53fcf2e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

prov/src/main/java/org/bouncycastle/jcajce/spec/HybridValueParameterSpec.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
/**
1111
* SP 800-56C Hybrid Value spec, to allow the secret in a key agreement to be
1212
* created as "Z | T" where T is some other secret value as described in Section 2.
13+
* <p>
14+
* Get methods throw IllegalStateException if destroy() is called.
15+
* </p>
1316
*/
1417
public class HybridValueParameterSpec
1518
implements AlgorithmParameterSpec, Destroyable
@@ -56,6 +59,12 @@ public AlgorithmParameterSpec getBaseParameterSpec()
5659
return baseSpec;
5760
}
5861

62+
/**
63+
* Return true if the destroy() method is called and the contents are
64+
* erased.
65+
*
66+
* @return true if destroyed, false otherwise.
67+
*/
5968
public boolean isDestroyed()
6069
{
6170
return this.hasBeenDestroyed.get();

0 commit comments

Comments
 (0)