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

com.unbound.provider.UBSecretKey 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.provider;

import com.unbound.client.SecretKeyObject;

import javax.crypto.SecretKey;
import java.security.ProviderException;

public final class UBSecretKey implements SecretKey
{
  final SecretKeyObject object;

  UBSecretKey(SecretKeyObject object) { this.object = object; }

  @Override
  public String getAlgorithm() { return object.getType().getAlgName(); }

  @Override
  public String getFormat()
  {
    return null;
  }

  @Override
  public byte[] getEncoded()
  {
    throw new ProviderException("Function not supported");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy