Class PrivateKeyAnnotator


  • public class PrivateKeyAnnotator
    extends java.lang.Object
    Class for instancing AnnotatedPrivateKeys.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static AnnotatedPrivateKey annotate​(java.security.PrivateKey privKey, java.lang.String label)
      Create an AnnotatedPrivateKey with a single annotation using AnnotatedPrivateKey.LABEL as a key.
      static AnnotatedPrivateKey annotate​(java.security.PrivateKey privKey, java.util.Map<java.lang.String,​java.lang.Object> annotations)  
      • 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<java.lang.String,​java.lang.Object> annotations)