Class AnnotatedPrivateKey

    • Method Detail

      • getAnnotation

        public Object getAnnotation​(String key)
      • addAnnotation

        public AnnotatedPrivateKey addAnnotation​(String name,
                                                 Object annotation)
        Return a new annotated key with an additional annotation added to it.
        Parameters:
        name - the name of the annotation to add.
        annotation - the object providing the annotation details.
        Returns:
        a new annotated key with the extra annotation.
      • removeAnnotation

        public AnnotatedPrivateKey removeAnnotation​(String name)
        Return a new annotated key with the named annotation removed.
        Parameters:
        name - the name of the annotation to remove.
        Returns:
        a new annotated key with the named annotation removed.
      • getEncoded

        public byte[] getEncoded()
        Specified by:
        getEncoded in interface Key
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object