Interface EncryptionKey<T extends CryptoKey>

Type Parameters:
T - the specific type of key this is.
All Known Implementing Classes:
DataEncryptionKey, KeyAgreementKey, KeyEncryptionKey

public interface EncryptionKey<T extends CryptoKey>
Marker interface for all key types that can be used for encryption.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the same object as a specific CryptoKey subclass.
  • Method Details

    • asCryptoKey

      T asCryptoKey()
      Returns the same object as a specific CryptoKey subclass.
      Returns:
      the same key as a CryptoKey.