Class KeyWithMetadata


  • public final class KeyWithMetadata
    extends java.lang.Object
    An immutable value holder for a key and its associated metadata.
    Author:
    Carl Harris
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyWithMetadata​(java.security.Key key, Metadata metadata)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.security.Key getKey()
      Gets the subject key.
      Metadata getMetadata()
      Gets the metadata associated with the key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyWithMetadata

        public KeyWithMetadata​(java.security.Key key,
                               Metadata metadata)
    • Method Detail

      • getKey

        public java.security.Key getKey()
        Gets the subject key.
        Returns:
        key
      • getMetadata

        public Metadata getMetadata()
        Gets the metadata associated with the key.
        Returns: