Class RbelKey

java.lang.Object
de.gematik.rbellogger.key.RbelKey
Direct Known Subclasses:
IdentityBackedRbelKey, RbelVauKey

public class RbelKey extends Object
  • Field Details

    • PRECEDENCE_X5C_HEADER_VALUE

      public static final int PRECEDENCE_X5C_HEADER_VALUE
      See Also:
    • PRECEDENCE_KEY_FOLDER

      public static final int PRECEDENCE_KEY_FOLDER
      See Also:
    • PRECEDENCE_JWK_VALUE

      public static final int PRECEDENCE_JWK_VALUE
      See Also:
  • Constructor Details

  • Method Details

    • retrieveCorrespondingKeyPair

      public Optional<KeyPair> retrieveCorrespondingKeyPair()
    • isPrivateKey

      public boolean isPrivateKey()
    • builder

      public static RbelKey.RbelKeyBuilder builder()
    • getKey

      public Key getKey()
    • getKeyName

      public String getKeyName()
    • getPrecedence

      public int getPrecedence()
      The importance of this particular key. Higher value means it will be considered before potentially matching keys with lower precedence.
    • getMatchingPublicKey

      public Optional<RbelKey> getMatchingPublicKey()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object