public class KeypairProvider extends BaseKeyProvider
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
algs |
private java.security.PrivateKey |
privKey |
private java.security.PublicKey |
pubKey |
AES_ALGORITHMS, DSA_ALGORITHMS, RSA_ALGORITHMS, TRIPLEDES_ALGORITHMS
Constructor and Description |
---|
KeypairProvider(java.security.PublicKey pubKey,
java.security.PrivateKey privKey,
java.lang.String name,
byte[] id,
java.lang.String uri) |
Modifier and Type | Method and Description |
---|---|
KeyResult |
getKey(java.lang.String desiredAlg,
KeyPurpose purpose) |
protected KeyResult |
getResult(java.security.Key key) |
getIdentifier, getKeyByIdentifier, getKeyByIssuerSerial, getKeyByName, getKeyBySubjectName, getKeyByURI, getName, getUri, toString
private final java.lang.String[] algs
private final java.security.PublicKey pubKey
private final java.security.PrivateKey privKey
public KeypairProvider(java.security.PublicKey pubKey, java.security.PrivateKey privKey, java.lang.String name, byte[] id, java.lang.String uri)
protected KeyResult getResult(java.security.Key key)
public KeyResult getKey(java.lang.String desiredAlg, KeyPurpose purpose)