public class PrivateKeyAnnotator extends Object
Constructor and Description |
---|
PrivateKeyAnnotator() |
Modifier and Type | Method and Description |
---|---|
static AnnotatedPrivateKey |
annotate(PrivateKey privKey,
Map<String,Object> annotations) |
static AnnotatedPrivateKey |
annotate(PrivateKey privKey,
String label)
Create an AnnotatedPrivateKey with a single annotation using AnnotatedPrivateKey.LABEL as a key.
|
public static AnnotatedPrivateKey annotate(PrivateKey privKey, String label)
privKey
- the private key to be annotated.label
- the label to be associated with the private key.public static AnnotatedPrivateKey annotate(PrivateKey privKey, Map<String,Object> annotations)
Copyright © 2021 BouncyCastle.org. All rights reserved.