public class KeyPairWrapper extends java.lang.Object implements KeyProvider
KeyProvider
wrapper around KeyPair
Constructor and Description |
---|
KeyPairWrapper(java.security.KeyPair kp) |
KeyPairWrapper(java.security.PublicKey publicKey,
java.security.PrivateKey privateKey) |
Modifier and Type | Method and Description |
---|---|
java.security.PrivateKey |
getPrivate() |
java.security.PublicKey |
getPublic() |
KeyType |
getType() |
public KeyPairWrapper(java.security.KeyPair kp)
public KeyPairWrapper(java.security.PublicKey publicKey, java.security.PrivateKey privateKey)
public java.security.PrivateKey getPrivate()
getPrivate
in interface KeyProvider
public java.security.PublicKey getPublic()
getPublic
in interface KeyProvider
public KeyType getType()
getType
in interface KeyProvider
KeyType
.