Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce.util
Class PrivateKeyAnnotator

java.lang.Object
  |
  +--org.bouncycastle.jcajce.util.PrivateKeyAnnotator

public class PrivateKeyAnnotator
extends java.lang.Object

Class for instancing AnnotatedPrivateKeys.


Constructor Summary
PrivateKeyAnnotator()
           
 
Method Summary
static AnnotatedPrivateKey annotate(java.security.PrivateKey privKey, java.util.Map 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrivateKeyAnnotator

public PrivateKeyAnnotator()
Method Detail

annotate

public static AnnotatedPrivateKey annotate(java.security.PrivateKey privKey,
                                           java.lang.String label)
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

public static AnnotatedPrivateKey annotate(java.security.PrivateKey privKey,
                                           java.util.Map annotations)

Bouncy Castle Cryptography Library 1.77.0