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

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

import java.math.BigInteger;
import java.security.ProviderException;
import java.security.interfaces.ECPrivateKey;
import java.security.spec.ECParameterSpec;

public final class UBECPrivateKey implements ECPrivateKey
{
  final ECPrivateKeyObject object;
  UBECPrivateKey(ECPrivateKeyObject object) { this.object = object; }

  public ECPrivateKeyObject getObject() { return object; }

  @Override
  public BigInteger getS()
  {
    throw new ProviderException("Function not supported");
  }

  @Override
  public String getAlgorithm() { return "EC"; }

  @Override
  public String getFormat()
  {
    throw new ProviderException("Function not supported");
  }

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

  @Override
  public ECParameterSpec getParams()
  {
    return object.getCurve().spec;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy