public class DSAPublicKeyImpl extends DSAKeyImpl implements javacard.security.DSAPublicKey
DSAPublicKey based
on BouncyCastle CryptoAPI.DSAPublicKey,
DSAPublicKeyParameters| Modifier and Type | Field and Description |
|---|---|
protected ByteContainer |
y |
g, isPrivate, p, q| Constructor and Description |
|---|
DSAPublicKeyImpl(org.bouncycastle.crypto.params.DSAPublicKeyParameters params)
Construct and initialize ecc key with DSAPublicKeyParameters.
|
DSAPublicKeyImpl(short keySize)
Construct not-initialized dsa public key
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearKey() |
org.bouncycastle.crypto.CipherParameters |
getParameters()
Get
DSAKeyParameters |
short |
getY(byte[] buffer,
short offset) |
boolean |
isInitialized() |
void |
setParameters(org.bouncycastle.crypto.CipherParameters params)
Set cipher key for use with BouncyCastle Crypto API
|
void |
setY(byte[] buffer,
short offset,
short length) |
getG, getKeyGenerationParameters, getP, getQ, setG, setP, setQprotected ByteContainer y
public DSAPublicKeyImpl(short keySize)
keySize - key size it bitsKeyBuilderpublic DSAPublicKeyImpl(org.bouncycastle.crypto.params.DSAPublicKeyParameters params)
params - key params from BouncyCastle APIKeyPair,
DSAPublicKeyParameterspublic void setParameters(org.bouncycastle.crypto.CipherParameters params)
KeyWithParameterssetParameters in interface KeyWithParameterssetParameters in class DSAKeyImplparams - key parameterspublic void setY(byte[] buffer,
short offset,
short length)
throws javacard.security.CryptoException
setY in interface javacard.security.DSAPublicKeyjavacard.security.CryptoExceptionpublic short getY(byte[] buffer,
short offset)
getY in interface javacard.security.DSAPublicKeypublic boolean isInitialized()
isInitialized in interface javacard.security.KeyisInitialized in class DSAKeyImplpublic void clearKey()
clearKey in interface javacard.security.KeyclearKey in class DSAKeyImplpublic org.bouncycastle.crypto.CipherParameters getParameters()
DSAKeyImplDSAKeyParametersgetParameters in interface KeyWithParametersgetParameters in class DSAKeyImplDSAKeyParameters