Top Description Constructors Methods
org.bouncycastle.jcajce.util

public Class PrivateKeyAnnotator

extends Object
Class Inheritance
Imports
java.security.PrivateKey, java.util.Collections, .HashMap, .Map

Class for instancing AnnotatedPrivateKeys.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static AnnotatedPrivateKey

Returns:

the newly annotated private key.
annotate
(PrivateKey
the private key to be annotated.
privKey
,
String
the label to be associated with the private key.
label
)

Create an AnnotatedPrivateKey with a single annotation using AnnotatedPrivateKey.LABEL as a key.

public static AnnotatedPrivateKey
annotate(PrivateKey privKey, Map<String, Object> annotations)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PrivateKeyAnnotatorback to summary
public PrivateKeyAnnotator()

Method Detail

annotateback to summary
public static AnnotatedPrivateKey annotate(PrivateKey privKey, String label)

Create an AnnotatedPrivateKey with a single annotation using AnnotatedPrivateKey.LABEL as a key.

Parameters
privKey:PrivateKey

the private key to be annotated.

label:String

the label to be associated with the private key.

Returns:AnnotatedPrivateKey

the newly annotated private key.

annotateback to summary
public static AnnotatedPrivateKey annotate(PrivateKey privKey, Map<String, Object> annotations)