com.unbound.provider.UBECPrivateKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unbound-java-provider Show documentation
Show all versions of unbound-java-provider Show documentation
This is a collection of JAVA libraries that implement Unbound cryptographic classes for JAVA provider, PKCS11 wrapper, cryptoki, and advapi
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;
}
}