Interface IdentifiedKey

  • All Superinterfaces:
    KeySigned

    public interface IdentifiedKey
    extends KeySigned
    Represents session-server cross-signed dated RSA public key.
    • Method Detail

      • getSignedPublicKey

        PublicKey getSignedPublicKey()
        Returns RSA public key. Note: this key is at least 2048 bits but may be larger.
        Returns:
        the RSA public key in question
      • verifyDataSignature

        boolean verifyDataSignature​(byte[] signature,
                                    byte[]... toVerify)
        Validates a signature against this public key.
        Parameters:
        signature - the signature data
        toVerify - the signed data
        Returns:
        validity of the signature
      • getSignatureHolder

        @Nullable UUID getSignatureHolder()
        Retrieves the signature holders UUID. Returns null before the LoginEvent.
        Returns:
        the holder UUID or null if not present
      • getKeyRevision

        IdentifiedKey.Revision getKeyRevision()
        Retrieves the key revision.
        Returns:
        the key revision