All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mmm.crypto.symmetric.key.SymmetricKey Maven / Gradle / Ivy

package io.github.mmm.crypto.symmetric.key;

import java.security.Key;
import java.util.Collections;
import java.util.Set;

import javax.crypto.SecretKey;

import io.github.mmm.crypto.key.KeySet;

/**
 * Interface for a {@link KeySet} with a single {@link SecretKey} for symmetric encryption.
 *
 * @param  type of {@link SecretKey}.
 * @since 1.0.0
 */
public interface SymmetricKey extends KeySet {

  /**
   * @return the {@link SecretKey}.
   */
  K getKey();

  @Override
  default Set getKeys() {

    return Collections.singleton(getKey());
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy