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

com.unbound.client.Session Maven / Gradle / Ivy

Go to download

This is a collection of JAVA libraries that implement Unbound cryptographic classes for JAVA provider, PKCS11 wrapper, cryptoki, and advapi

There is a newer version: 42761
Show newest version
package com.unbound.client;

import com.unbound.common.crypto.EC;
import com.unbound.provider.KeyParameters;

import javax.security.auth.x500.X500Principal;
import java.security.cert.X509Certificate;
import java.security.interfaces.ECPrivateKey;
import java.security.interfaces.RSAPrivateCrtKey;
import java.security.interfaces.RSAPublicKey;
import java.util.ArrayList;

public interface Session
{
  Partition getPartition();
  void release();
  SecretKeyObject generateSecretKey(String name, ObjectType type, int bitSize, KeyParameters kp);
  SecretKeyObject importSecretKey(String name, ObjectType type, byte[] keyValue, KeyParameters kp);
  EDDSAPrivateKeyObject generateEddsaKey(String name, KeyParameters kp);
  RSAPrivateKeyObject generateRsaKey(String name, int bitSize, KeyParameters kp);
  ECPrivateKeyObject generateEcKey(String name, EC.Curve curve, KeyParameters kp);
  RSAPublicKeyObject importPubRsaKey(String name, RSAPublicKey keyValue, KeyParameters kp);
  RSAPrivateKeyObject importRsaKey(String name, RSAPrivateCrtKey keyValue, KeyParameters kp);
  ECPrivateKeyObject importEcKey(String name, ECPrivateKey keyValue, KeyParameters kp);
  ECPRFKey generateEcprfKey(String name, KeyParameters kp);
  CertObject importCert(String name, X509Certificate cert);
  BaseObject locate(ObjectType type, LocateParams params);
  ArrayList locate(ObjectType type);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy