|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jason.client.Ans
Title: Jason As Secure Object Network
Description: Applet Name Server
Copyright: Copyright (c) 2002
Company: University of Twente
Field Summary | |
protected SecureCardAccessor |
cardAccessor
|
protected com.sun.javacard.javax.smartcard.rmiclient.JavaCardRMIConnect |
javaCardRMIConnect
|
protected KeyStore |
keyStore
|
protected java.util.Properties |
properties
|
Constructor Summary | |
Ans(KeyStore keyStore)
Loads the default properties from jcrmi/client/ans.properties. |
|
Ans(KeyStore keyStore,
java.util.Properties properties)
Sets the properties to a custom value. |
Method Summary | |
void |
addApplet(java.lang.String fullAppletName,
byte[] aid)
Adds a new applet to the registry. |
void |
addApplet(java.lang.String fullAppletName,
java.lang.String aid)
Adds a new applet to the registry. |
void |
deleteApplet(java.lang.String fullAppletName)
Deletes the applet from the registry. |
java.lang.Object |
getApplet(java.lang.String fullAppletName,
byte role)
Gets the AID from the fullAppletName and selects the Applet.
|
byte[] |
getAppletAID(java.lang.String fullAppletName)
Gets the AID of an applet as a byte array. |
protected void |
init(KeyStore keyStore)
Initializes the keyStore , cardAccessor and
javaCardRMIConnect . |
void |
load(java.io.InputStream properties)
Loads the properties from the given input stream. |
void |
setHost(java.lang.String hostName)
Sets the hostname. |
void |
setPort(int port)
Sets the port number. |
void |
store(java.io.OutputStream properties)
Stores the properties to the given output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Properties properties
protected KeyStore keyStore
protected SecureCardAccessor cardAccessor
protected com.sun.javacard.javax.smartcard.rmiclient.JavaCardRMIConnect javaCardRMIConnect
Constructor Detail |
public Ans(KeyStore keyStore)
public Ans(KeyStore keyStore, java.util.Properties properties)
keyStore
- The key store to be usedproperties
- Properties to be usedMethod Detail |
protected void init(KeyStore keyStore)
keyStore
, cardAccessor
and
javaCardRMIConnect
.
public java.lang.Object getApplet(java.lang.String fullAppletName, byte role) throws java.io.IOException
fullAppletName
and selects the Applet.
The it logs in as the specified role
and gets the
initial reference to the remote object.
fullAppletName
- Name of the card object preceded with the full package namerole
- Role byte in which to log in
LoginException
- when the card refuses to log in
java.io.IOException
- when another IO error occurspublic void setHost(java.lang.String hostName)
hostName
- The host namepublic void setPort(int port)
port
- The port numberpublic void load(java.io.InputStream properties) throws java.io.IOException
properties
- InputStream from where the properties can be read
java.io.IOException
- when an IO error occurspublic void store(java.io.OutputStream properties) throws java.io.IOException
properties
- OutputStream to where the properties can be written
java.io.IOException
- when an IO error occurspublic void addApplet(java.lang.String fullAppletName, java.lang.String aid)
fullAppletName
- Applet name preceded by the full package nameaid
- The aid in the form 0x00:0x00:0x00:0x00:0x00public void addApplet(java.lang.String fullAppletName, byte[] aid)
fullAppletName
- Applet name preceded by the full package nameaid
- The aid in the form of a byte arraypublic void deleteApplet(java.lang.String fullAppletName)
fullAppletName
- The applet name preceded by the full package namepublic byte[] getAppletAID(java.lang.String fullAppletName)
fullAppletName
- The applet name preceded by the full package name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |