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
-
CHANGES_FOUND
- Sended by the CRA in order to inform the client that some changes,regarding credentials,exists
-
CHANGES_NOT_FOUND
- Sended by the CRA in order to inform the client that no changes have been take place, regarding credentials
-
SEND_CHANGES
- Used to trigger the CRA to send the last changes associated with the current client
-
SEND_CREDENTIALS
- Used to trigger the CRA to send the new/updated credentials associated with the current client
-
SEND_SERVER_PK
- Used to trigger the CRA to send the trusted key
-
CredentialClient(boolean, Download)
- Constructor for the CredentialClient object
-
checkCredentials(Certificate, Credentials, CryptoKeyInfo)
- Check if the user's credentials are valid
-
getCredentials()
- Open a connection to the credential server and reads the
credentials from the socket.
-
getServerPK()
- Creates a socket connection to the credential server and
reads the trusted pk from the socket.
-
retrieveCredentials()
- Retieves the credentials from user's database
-
retrieveServerPK()
- This method is used to retrieve credential server's pk
SEND_SERVER_PK
public static final int SEND_SERVER_PK
- Used to trigger the CRA to send the trusted key
SEND_CHANGES
public static final int SEND_CHANGES
- Used to trigger the CRA to send the last changes associated with the current client
SEND_CREDENTIALS
public static final int SEND_CREDENTIALS
- Used to trigger the CRA to send the new/updated credentials associated with the current client
CHANGES_FOUND
public static final int CHANGES_FOUND
- Sended by the CRA in order to inform the client that some changes,regarding credentials,exists
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
CredentialClient
public CredentialClient(boolean server,
Download dl)
- Constructor for the CredentialClient object
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
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
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
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
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