Class PrivateKeyAnnotator

java.lang.Object
org.bouncycastle.jcajce.util.PrivateKeyAnnotator

public class PrivateKeyAnnotator extends Object
Class for instancing AnnotatedPrivateKeys.
  • Constructor Details

    • PrivateKeyAnnotator

      public PrivateKeyAnnotator()
  • Method Details

    • annotate

      public static AnnotatedPrivateKey annotate(PrivateKey privKey, 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(PrivateKey privKey, Map<String,Object> annotations)