Interface KeyGenerationCardServiceWithSpec
-
- All Superinterfaces:
CardServiceInterface
,KeyGenerationCardService
,SecureService
,SignatureCardService
- All Known Implementing Classes:
SmartCardHSMCardService
public interface KeyGenerationCardServiceWithSpec extends KeyGenerationCardService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
generateKey(byte newKeyId, SmartCardHSMSecretKeySpec spec)
Generate a new symmetric keybyte[]
generateKeyPair(byte newKeyId, SmartCardHSMPrivateKeySpec spec)
Initiate the generation of a fresh key pair for the selected key object.-
Methods inherited from interface opencard.opt.service.CardServiceInterface
getCard, setCHVDialog
-
Methods inherited from interface opencard.opt.signature.KeyGenerationCardService
generateKeyPair, readPublicKey
-
Methods inherited from interface opencard.opt.security.SecureService
provideCredentials
-
Methods inherited from interface opencard.opt.signature.SignatureCardService
signData, signData, signHash, signHash, verifySignedData, verifySignedData, verifySignedHash, verifySignedHash
-
-
-
-
Method Detail
-
generateKeyPair
byte[] generateKeyPair(byte newKeyId, SmartCardHSMPrivateKeySpec spec) throws OpenCardException
Initiate the generation of a fresh key pair for the selected key object. Generating a new key pair requires a successful verification of the User PIN.- Parameters:
newKeyId
- the ID for the key to be generatedspec
- the KeySpec containing the domain parameter- Throws:
OpenCardException
-
generateKey
byte[] generateKey(byte newKeyId, SmartCardHSMSecretKeySpec spec) throws OpenCardException
Generate a new symmetric key- Parameters:
newKeyId
- the id for the key to be generatedspec
- the key specification- Returns:
- Throws:
OpenCardException
-
-