All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.download.CredentialClient

java.lang.Object
   |
   +----semper.download.CredentialClient

public class CredentialClient
extends Object
This class implements the client part used to get/update credentials. Usualy this module creates a connection to the credential server and gets the owned credentials

Version:
$Revision: 1.5 $ $Date: 1998/08/20 09:28:51 $
Author:
Petros Pantis, Kostas Tzelepis

Variable Index

 o CHANGES_FOUND
Sended by the CRA in order to inform the client that some changes,regarding credentials,exists
 o CHANGES_NOT_FOUND
Sended by the CRA in order to inform the client that no changes have been take place, regarding credentials
 o SEND_CHANGES
Used to trigger the CRA to send the last changes associated with the current client
 o SEND_CREDENTIALS
Used to trigger the CRA to send the new/updated credentials associated with the current client
 o SEND_SERVER_PK
Used to trigger the CRA to send the trusted key

Constructor Index

 o CredentialClient(boolean, Download)
Constructor for the CredentialClient object

Method Index

 o checkCredentials(Certificate, Credentials, CryptoKeyInfo)
Check if the user's credentials are valid
 o getCredentials()
Open a connection to the credential server and reads the credentials from the socket.
 o getServerPK()
Creates a socket connection to the credential server and reads the trusted pk from the socket.
 o retrieveCredentials()
Retieves the credentials from user's database
 o retrieveServerPK()
This method is used to retrieve credential server's pk

Variables

 o SEND_SERVER_PK
 public static final int SEND_SERVER_PK
Used to trigger the CRA to send the trusted key

 o SEND_CHANGES
 public static final int SEND_CHANGES
Used to trigger the CRA to send the last changes associated with the current client

 o SEND_CREDENTIALS
 public static final int SEND_CREDENTIALS
Used to trigger the CRA to send the new/updated credentials associated with the current client

 o CHANGES_FOUND
 public static final int CHANGES_FOUND
Sended by the CRA in order to inform the client that some changes,regarding credentials,exists

 o CHANGES_NOT_FOUND
 public static final int CHANGES_NOT_FOUND
Sended by the CRA in order to inform the client that no changes have been take place, regarding credentials

Constructors

 o CredentialClient
 public CredentialClient(boolean server,
                         Download dl)
Constructor for the CredentialClient object

Methods

 o retrieveServerPK
 public CryptoKeyInfo retrieveServerPK() throws Exception
This method is used to retrieve credential server's pk

Returns:
value the credential server's trusted key
Throws: Exception
thrown each time an error occur during Archive retrieval
 o getServerPK
 public int getServerPK()
Creates a socket connection to the credential server and reads the trusted pk from the socket. Afterthat the trusted pk will be stored in the user's database

Returns:
value 0,the stored and sended CRA pk is the same, 1, have been changed, else error
 o retrieveCredentials
 public Credentials retrieveCredentials() throws Exception
Retieves the credentials from user's database

Returns:
value the credentials owned by the user
Throws: Exception
thrown each time an error occur during Archive retrieval
 o getCredentials
 public boolean getCredentials()
Open a connection to the credential server and reads the credentials from the socket. On success the new/updated credentials are stored in the user's database

Returns:
value true on success
 o checkCredentials
 public boolean checkCredentials(Certificate userCert,
                                 Credentials issuedCred,
                                 CryptoKeyInfo servPK)
Check if the user's credentials are valid

Parameters:
userCert - user's certificate
issuedCred - the stored credentials
servPK - credentials server's trusted pk
Returns:
value true if the stored credentials are valid

All Packages  Class Hierarchy  This Package  Previous  Next  Index