|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectseccommerce.secauthenticator.SecAuthenticator
public class SecAuthenticator
SecAuthenticator API. This API is not intended for public use. It shall only be used by specific customers who have an agreement with SecCommerce Informationssyteme GmbH about the usage of this API.
Constructor Summary | |
---|---|
SecAuthenticator(java.lang.String secAuthSessionId,
java.lang.String targetPath,
java.util.Properties priorityProperties)
Creates a SecAuthenticator for use by WebStart. |
|
SecAuthenticator(java.awt.Window parentWindow)
Creates a SecAuthenticator for use in a pop-up window belonging to an application. |
|
SecAuthenticator(java.awt.Window parentWindow,
java.util.Properties properties)
Creates a SecAuthenticator for use in a pop-up window belonging to an application. |
|
SecAuthenticator(java.awt.Window parentWindow,
java.util.Properties properties,
java.lang.String installPath)
Deprecated. use SecAuthenticator(Window, Properties) instead |
Method Summary | |
---|---|
void |
cancel()
Will be called when the smart card initialization was canceled by the user. |
void |
close()
Closes this SecAuthenticator instance. |
byte[] |
decrypt(byte[] envelopedDataDer,
boolean alwaysVerifyPin)
Decrypts data with the inserted smart card. |
byte[] |
encryptForInsertedSmartCard(byte[] plainData)
Encrypts data for the inserted smart card. |
void |
initSignUnits()
Initializes the signature units (smart card readers or software key) and searches the inserted cards. |
boolean |
isSmartCardAvailable()
Checks if a SmartCard is available. |
java.lang.String |
logInToSecRouter(boolean alwaysVerifyPin)
Logs in to SecRouter. |
static void |
main(java.lang.String[] args)
Entry point for WebStart. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecAuthenticator(java.awt.Window parentWindow, java.util.Properties properties) throws SecAuthenticatorException
parentWindow
- reference to the parent window.properties
- the properties.
SecAuthenticatorException
- if the resource file containing native libraries to access card readers cannot be
found or read or the resource JAR containing images cannot be loaded.
java.lang.NullPointerException
- if the properties parameter or the window parameter is null
.public SecAuthenticator(java.awt.Window parentWindow, java.util.Properties properties, java.lang.String installPath) throws SecAuthenticatorException
parentWindow
- reference to the parent window.properties
- the properties.installPath
- SecAuthenticator's installation path.
SecAuthenticatorException
- if the resource file containing native libraries to access card readers cannot be
found or read or the resource JAR containing images cannot be loaded.
java.lang.NullPointerException
- if the properties parameter or the window parameter is null
.public SecAuthenticator(java.awt.Window parentWindow) throws SecAuthenticatorException
parentWindow
- reference to the parent window.
SecAuthenticatorException
- if the resource file containing native libraries to access card readers cannot be
found or read or the resource JAR containing images cannot be loaded.
java.lang.NullPointerException
- if the properties parameter or the window parameter is null
.public SecAuthenticator(java.lang.String secAuthSessionId, java.lang.String targetPath, java.util.Properties priorityProperties) throws SecAuthenticatorException
secAuthSessionId
- the session cookie generated by SecRoutertargetPath
- the target path requested by the browserpriorityProperties
- the properties read from the command line coming the SecRouter's JNLP file
SecAuthenticatorException
- if the resource file containing native libraries to access card readers cannot be
found or read or the resource JAR containing images cannot be loaded.Method Detail |
---|
public static void main(java.lang.String[] args)
args
- the command line parameters from a JNLP file generated by SecRouterpublic void close()
public final void initSignUnits() throws SecAuthenticatorException
SecAuthenticatorException
- if the user canceled the initialization process.public java.lang.String logInToSecRouter(boolean alwaysVerifyPin) throws SecAuthenticatorException
alwaysVerifyPin
- if true the PIN will be verified even if has been verified already and the card would not require a new verification
SecAuthenticatorException
- if the login failedpublic byte[] encryptForInsertedSmartCard(byte[] plainData) throws SecAuthenticatorException
plainData
- plain data to be encrypted
SecAuthenticatorException
- if the certificate from the smart card could not be parsed or the EnvelopedData could not be constructedpublic byte[] decrypt(byte[] envelopedDataDer, boolean alwaysVerifyPin) throws SecAuthenticatorException
envelopedDataDer
- encrypted PKCS#7 EnvelopedData objectalwaysVerifyPin
- if true the PIN will be verified even if has been verified already and the card would not require a new verification
SecAuthenticatorException
- if enveloped data could not be decrypted with this inserted smart cardpublic boolean isSmartCardAvailable() throws SecAuthenticatorException
SecAuthenticatorException
public final void cancel()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |