com.unbound.provider.UBKeyStoreEntry 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 java.security.PrivateKey;
import java.security.PublicKey;
public class UBKeyStoreEntry implements java.security.KeyStore.Entry
{
private PrivateKey prv = null;
private PublicKey pub = null;
private KeyParameters kp = null;
public UBKeyStoreEntry(PrivateKey key) { prv = key; }
public UBKeyStoreEntry(PublicKey key)
{
pub = key;
}
public UBKeyStoreEntry(PrivateKey key, KeyParameters kp) { prv = key; this.kp = kp; }
public UBKeyStoreEntry(PublicKey key, KeyParameters kp)
{
pub = key;this.kp = kp;
}
public PrivateKey getPrivateKey() { return prv; }
public PublicKey getPublicKey() { return pub; }
public KeyParameters getKeyParameters() { return kp; }
}