public class PrivateKeyAnnotator
extends java.lang.Object
| Constructor and Description |
|---|
PrivateKeyAnnotator() |
| Modifier and Type | Method and Description |
|---|---|
static AnnotatedPrivateKey |
annotate(java.security.PrivateKey privKey,
java.util.Map<java.lang.String,java.lang.Object> annotations) |
static AnnotatedPrivateKey |
annotate(java.security.PrivateKey privKey,
java.lang.String label)
Create an AnnotatedPrivateKey with a single annotation using AnnotatedPrivateKey.LABEL as a key.
|
public static AnnotatedPrivateKey annotate(java.security.PrivateKey privKey, java.lang.String label)
privKey - the private key to be annotated.label - the label to be associated with the private key.public static AnnotatedPrivateKey annotate(java.security.PrivateKey privKey, java.util.Map<java.lang.String,java.lang.Object> annotations)