Package org.bouncycastle.jcajce.util
Class PrivateKeyAnnotator
java.lang.Object
org.bouncycastle.jcajce.util.PrivateKeyAnnotator
Class for instancing AnnotatedPrivateKeys.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotatedPrivateKey
annotate
(PrivateKey privKey, String label) Create an AnnotatedPrivateKey with a single annotation using AnnotatedPrivateKey.LABEL as a key.static AnnotatedPrivateKey
annotate
(PrivateKey privKey, Map<String, Object> annotations)
-
Constructor Details
-
PrivateKeyAnnotator
public PrivateKeyAnnotator()
-
-
Method Details
-
annotate
Create an AnnotatedPrivateKey with a single annotation using AnnotatedPrivateKey.LABEL as a key.- Parameters:
privKey
- the private key to be annotated.label
- the label to be associated with the private key.- Returns:
- the newly annotated private key.
-
annotate
-