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