|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.ssonet.examples.catalog.customer.AnimatedOrderDialog
A window with an animated icon during the order
Nested Class Summary | |
(package private) class |
AnimatedOrderDialog.AnimatedDialog
The class for the animated dialog |
Field Summary | |
(package private) java.lang.String |
merchantHost
|
(package private) int |
merchantHostPort
|
(package private) org.ssonet.examples.catalog.net.Order |
order
|
(package private) javax.swing.JFrame |
parentFrame
|
(package private) org.ssonet.net.impl.SSONETClientSocket |
ssonetSocket
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Fields inherited from interface org.ssonet.net.ConnectionListener |
FINISHED_STATE, INIT_STATE, MECHANISMS_NEGOTIATION, NOT_STARTED_STATE, RUNNING_STATE, SECURITY_GOAL_NEGOTIATION |
Fields inherited from interface org.ssonet.net.CertificateListener |
INVALID, NOT_TESTED, VALID |
Constructor Summary | |
AnimatedOrderDialog(javax.swing.JFrame parentFrame,
org.ssonet.examples.catalog.customer.Customer customer,
java.lang.String merchantHost,
int merchantHostPort,
org.ssonet.examples.catalog.net.Order order)
Creates a window with an animated icon and assigns values to variables. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
An implementation for the cancel button of the animated dialog |
int |
checkCertificate(org.ssonet.net.SSONETContext context,
java.security.cert.X509Certificate cert)
Listenermethod for the certificate check |
void |
connectionStateChanged(org.ssonet.net.SSONETContext context,
int currentState)
When the connection state has changed, this method reports the current state. |
org.ssonet.net.SSONETContext |
createContext()
Create a SSONETContext. |
boolean |
decideSecurityGoal(int securityGoal,
org.ssonet.net.ActionConfiguration ownConfiguration,
org.ssonet.net.SSONETContext context)
This method must decide, wether a user wants to give in in a security goal negotiation conflict, or not. |
void |
negotiationRequestReceived(org.ssonet.net.SSONETContext context,
int negotiationType)
The method negotiationRequestReceived() is called by
SSONETProtocolStream , when a request for a
security goal and mechanisms negotiation, or only a mechanisms negotiation
was received, but before the negotiation of security parameters starts. |
void |
run()
Creates a new SSONETClientConnection to the merchant, sends the order and displays the merchants answer in a window |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
java.lang.String merchantHost
int merchantHostPort
javax.swing.JFrame parentFrame
org.ssonet.examples.catalog.net.Order order
org.ssonet.net.impl.SSONETClientSocket ssonetSocket
Constructor Detail |
public AnimatedOrderDialog(javax.swing.JFrame parentFrame, org.ssonet.examples.catalog.customer.Customer customer, java.lang.String merchantHost, int merchantHostPort, org.ssonet.examples.catalog.net.Order order)
Method Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public int checkCertificate(org.ssonet.net.SSONETContext context, java.security.cert.X509Certificate cert)
checkCertificate
in interface CertificateListener
context
- The Context in which the Certificate ha to be evaluated.cert
- The Certificate to be evaluated.
public boolean decideSecurityGoal(int securityGoal, org.ssonet.net.ActionConfiguration ownConfiguration, org.ssonet.net.SSONETContext context)
ConnectionListener
decideSecurityGoal
in interface ConnectionListener
securityGoal
- the security goal to decide on, the security
goals are defined in class ssonet.SSONETConstants.ownConfiguration
- the ActionConfiguration object of the user.
This holds the actual security goal configuration.context
- informations about the communication partner.
public org.ssonet.net.SSONETContext createContext()
SSONETContextFactory
createContext
in interface SSONETContextFactory
public void negotiationRequestReceived(org.ssonet.net.SSONETContext context, int negotiationType)
ConnectionListener
negotiationRequestReceived()
is called by
SSONETProtocolStream
, when a request for a
security goal and mechanisms negotiation, or only a mechanisms negotiation
was received, but before the negotiation of security parameters starts.
negotiationRequestReceived
in interface ConnectionListener
context
- the SSONETContext
used by the server for this
request.negotiationType
- SECURITY_GOAL_NEGOTIATION
if the negotiation
requested is a security goal (and mechanisms) negotiation,
MECHANISMS_NEGOTIATION
if the negotiation requested is only a
mechanisms negotiation.
public void connectionStateChanged(org.ssonet.net.SSONETContext context, int currentState)
ConnectionListener
connectionStateChanged
in interface ConnectionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |