Package de.cardcontact.opencard.eac
Class EACCardService
- java.lang.Object
-
- opencard.core.service.CardService
-
- de.cardcontact.opencard.eac.EACCardService
-
public class EACCardService extends CardService
-
-
Constructor Summary
Constructors Constructor Description EACCardService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsoSecureChannelCredential
getSecureMessagingCredential()
protected void
initialize(CardServiceScheduler scheduler, SmartCard card, boolean blocking)
Initializes this service.void
performChipAuthentication()
void
performTerminalAuthentication(TerminalAuthenticationSigner tasigner)
byte[]
prepareTerminalAuthentication(ChipAuthentication ca, CardVerifiableCertificate terminalCert, TLV auxdata)
void
setChipAuthenticationParameter(ObjectIdentifier protocol, StandardizedDomainParameter domainParameter)
void
setChipAuthenticationPublicKey(java.security.PublicKey caPublicKey)
void
setRootCHR(java.lang.String rootCHR)
-
Methods inherited from class opencard.core.service.CardService
allocateCardChannel, getCard, getCardChannel, getCHVDialog, releaseCardChannel, setCardChannel, setCHVDialog
-
-
-
-
Method Detail
-
initialize
protected void initialize(CardServiceScheduler scheduler, SmartCard card, boolean blocking) throws CardServiceException
Description copied from class:CardService
Initializes this service. This method is an extension to the constructor. It is invoked by the CardServiceFactory after creating a service using the default constructor. The service cannot be used until this method has been invoked and returned without throwing an exception.
Derived services may override this method to perform extended initialization. However, the implementation in this class has to be invoked anyway. The preferred way to do this is by invoking super.initialize at the beginning of the redefined method. This mimics the construction mechanism, where the invocation of the base class constructors has to be the first statement in the constructors of derived classes.
This method has visibility protected since it is meant to be invoked only from class CardServiceFactory. If services should be instantiatable from somewhere else, they may redefine it with public visibility, or whatever is appropriate.- Overrides:
initialize
in classCardService
- Parameters:
scheduler
- where this service is going to allocate channelscard
- which smartcard has to be supported by this serviceblocking
- whether channel allocation is going to be blocking- Throws:
CardServiceException
- if the service could not be initialized. The object created via the default constructor may not be used if this happens.- See Also:
CardServiceFactory
-
setRootCHR
public void setRootCHR(java.lang.String rootCHR)
-
setChipAuthenticationParameter
public void setChipAuthenticationParameter(ObjectIdentifier protocol, StandardizedDomainParameter domainParameter)
-
setChipAuthenticationPublicKey
public void setChipAuthenticationPublicKey(java.security.PublicKey caPublicKey)
-
prepareTerminalAuthentication
public byte[] prepareTerminalAuthentication(ChipAuthentication ca, CardVerifiableCertificate terminalCert, TLV auxdata) throws OpenCardException
- Throws:
OpenCardException
-
performTerminalAuthentication
public void performTerminalAuthentication(TerminalAuthenticationSigner tasigner) throws OpenCardException
- Throws:
OpenCardException
-
performChipAuthentication
public void performChipAuthentication() throws OpenCardException
- Throws:
OpenCardException
-
getSecureMessagingCredential
public IsoSecureChannelCredential getSecureMessagingCredential()
-
-