Interface Key


  • @TypeAdapters
    @Immutable
    public interface Key
    Information about a key that has been used to sign some TUF content.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getKeyIdHashAlgorithms()
      List of has algorithms this key has been signed with.
      java.lang.String getKeyType()
      A string denoting a public key signature system, such as "rsa", "ed25519", and "ecdsa-sha2-nistp256".
      java.util.Map<java.lang.String,​java.lang.String> getKeyVal()
      A dictionary containing the public portion of the key.
      java.lang.String getScheme()
      A string denoting a corresponding signature scheme.
    • Method Detail

      • getKeyIdHashAlgorithms

        @Named("keyid_hash_algorithms")
        java.util.List<java.lang.String> getKeyIdHashAlgorithms()
        List of has algorithms this key has been signed with.
      • getKeyType

        @Named("keytype")
        java.lang.String getKeyType()
        A string denoting a public key signature system, such as "rsa", "ed25519", and "ecdsa-sha2-nistp256".
      • getKeyVal

        @Named("keyval")
        java.util.Map<java.lang.String,​java.lang.String> getKeyVal()
        A dictionary containing the public portion of the key. The contents for TUF sigstore is typically something like: { "public": "04cbc5cab268416....9803" }
      • getScheme

        java.lang.String getScheme()
        A string denoting a corresponding signature scheme. For example: "rsassa-pss-sha256", "ed25519", and "ecdsa-sha2-nistp256".