|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface KeyImportCardService
KeyImportCardService The SignatureCardService offers methods to generate and verify a signature as well as key import, verification and generation methods. Many smartcard applications will work with existing keys imported during initialization or personalization instead of importing/generating them at runtime. Thus the functionality for
SignatureCardService,
KeyGenerationCardService| Method Summary | |
|---|---|
boolean |
importAndValidatePrivateKey(PrivateKeyRef destination,
java.security.PrivateKey privateKey,
byte[] keyInfo,
byte[] signature,
PublicKeyRef validationKey)
Import and validate a private key. |
boolean |
importAndValidatePublicKey(PublicKeyRef destination,
java.security.PublicKey key,
byte[] keyInfo,
byte[] signature,
PublicKeyRef validationKey)
Import and validate a public key to the card. |
void |
importPrivateKey(PrivateKeyRef destination,
java.security.PrivateKey key,
byte[] keyInfo)
Import a private key. |
void |
importPublicKey(PublicKeyRef destination,
java.security.PublicKey key,
byte[] keyInfo)
Import a public key to the card. |
| Methods inherited from interface opencard.opt.signature.SignatureCardService |
|---|
signData, signData, signHash, signHash, verifySignedData, verifySignedData, verifySignedHash, verifySignedHash |
| Methods inherited from interface opencard.opt.service.CardServiceInterface |
|---|
getCard, setCHVDialog |
| Methods inherited from interface opencard.opt.security.SecureService |
|---|
provideCredentials |
| Method Detail |
|---|
boolean importAndValidatePrivateKey(PrivateKeyRef destination,
java.security.PrivateKey privateKey,
byte[] keyInfo,
byte[] signature,
PublicKeyRef validationKey)
throws CardServiceException,
java.security.InvalidKeyException,
CardTerminalException
destination - Reference to the location on card where the imported key should be placed.privateKey - The actual key to be importedkeyInfo - Additional special information to be stored with the key file.signature - Signature for validation of the key.validationKey - Key on card used for validation of signature.
java.security.InvalidKeyException - The key type is not supported by the specific card service.
CardServiceException - any subclass of CardServiceException
CardTerminalException - any subclass of CardTerminalException
boolean importAndValidatePublicKey(PublicKeyRef destination,
java.security.PublicKey key,
byte[] keyInfo,
byte[] signature,
PublicKeyRef validationKey)
throws CardServiceException,
java.security.InvalidKeyException,
CardTerminalException
destination - Reference to the location on card where the imported key should be placed.key - The actual key.keyInfo - Additional special information to be stored with the key file.signature - Signature for validation of the key.validationKey - Key on card used for validation of signature.
java.security.InvalidKeyException - The key type is not supported by the specific card service.
CardServiceException - any subclass of CardServiceException
CardTerminalException - any subclass of CardTerminalException
void importPrivateKey(PrivateKeyRef destination,
java.security.PrivateKey key,
byte[] keyInfo)
throws CardServiceException,
java.security.InvalidKeyException,
CardTerminalException
destination - Reference to the location on card where the imported key should be placed.key - Private Key to store on card.keyInfo - Special information stored within the key file.
java.security.InvalidKeyException - The key type is not supported by the specific card service.
CardServiceException - any subclass of CardServiceException
CardTerminalException - any subclass of CardTerminalException
void importPublicKey(PublicKeyRef destination,
java.security.PublicKey key,
byte[] keyInfo)
throws CardServiceException,
java.security.InvalidKeyException,
CardTerminalException
destination - Reference to the location on card where the imported key should be placed.key - The actual key.keyInfo - Additional special information to be stored with the key file.
java.security.InvalidKeyException - The key type is not supported by the specific card service.
CardServiceException - any subclass of CardServiceException
CardTerminalException - any subclass of CardTerminalException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||