com.ibm.aglet
Class AgletInfo

java.lang.Object
  extended bycom.ibm.aglet.AgletInfo
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public final class AgletInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

AgletInfo class is a object which contains the information of the aglet.

Version:
$Revision: 1.2 $ $Date: 2002/01/19 21:57:19 $ $Author: kbd4hire $
Author:
Mitsuru Oshima
See Also:
Serialized Form

Field Summary
private  AgletID aid
           
private  short api_major_version
           
private  short api_minor_version
           
private  java.security.cert.Certificate authorityCert
           
private  byte[] authorityCertEncoded
           
private  long birthtime
           
private  java.lang.String classname
           
private  java.lang.String codebase
           
(package private) static LogCategory logCategory
           
private  java.lang.String origin
           
(package private) static long serialVersionUID
           
 
Constructor Summary
AgletInfo(AgletID aid, java.lang.String classname, java.net.URL codebase, java.lang.String origin, long birthtime, short api_major_version, short api_minor_version, java.security.cert.Certificate authorityCert)
          Constructs a AgletInfo with the specified parameters.
 
Method Summary
 java.lang.String getAddress()
           
 java.lang.String getAgletClassName()
          Gets the class name of the aglet.
 AgletID getAgletID()
          Gets the aglet id
 short getAPIMajorVersion()
          Gets the API major version to which the aglet is instantiated.
 short getAPIMinorVersion()
          Gets the API minor version to which the aglet is instantiated.
 java.security.cert.Certificate getAuthorityCertificate()
           
 java.lang.String getAuthorityName()
           
 java.net.URL getCodeBase()
          Gets the codebase address where the aglet code resides.
 long getCreationTime()
          Gets the time when the aglet is created.
 java.lang.String getOrigin()
          Gets the origin address where the aglet was instantiated.
private  void readObject(java.io.ObjectInputStream s)
          public AgletInfo clone(String a, URL c) { try { AgletInfo clone = (AgletInfo)clone(); // clone.address = a; // clone.codebase = c.toExternalForm(); return clone; } catch (CloneNotSupportedException ex) { return null; } }
 java.lang.String toString()
          Gets a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

logCategory

static LogCategory logCategory

aid

private AgletID aid

classname

private java.lang.String classname

origin

private java.lang.String origin

birthtime

private long birthtime

api_major_version

private short api_major_version

api_minor_version

private short api_minor_version

codebase

private java.lang.String codebase

authorityCert

private transient java.security.cert.Certificate authorityCert

authorityCertEncoded

private byte[] authorityCertEncoded
Constructor Detail

AgletInfo

public AgletInfo(AgletID aid,
                 java.lang.String classname,
                 java.net.URL codebase,
                 java.lang.String origin,
                 long birthtime,
                 short api_major_version,
                 short api_minor_version,
                 java.security.cert.Certificate authorityCert)
Constructs a AgletInfo with the specified parameters. This is used internally and the aglet programmers should not use this API.

Parameters:
aid - the aglet identifier.
classname - the classname of the aglet.
codebase - the codebase of the aglet classes.
origin - the address where the aglet was instantiated.
birthtime - the time when the aglet was instantiated.
api_major_version - major version.
api_minor_version - minor version.
authorityCert - the authority's certificate of the aglet.
Method Detail

getAddress

public java.lang.String getAddress()

getAgletClassName

public java.lang.String getAgletClassName()
Gets the class name of the aglet.


getAgletID

public AgletID getAgletID()
Gets the aglet id


getAPIMajorVersion

public short getAPIMajorVersion()
Gets the API major version to which the aglet is instantiated.


getAPIMinorVersion

public short getAPIMinorVersion()
Gets the API minor version to which the aglet is instantiated.


getAuthorityCertificate

public java.security.cert.Certificate getAuthorityCertificate()

getAuthorityName

public java.lang.String getAuthorityName()

getCodeBase

public java.net.URL getCodeBase()
Gets the codebase address where the aglet code resides.


getCreationTime

public long getCreationTime()
Gets the time when the aglet is created.


getOrigin

public java.lang.String getOrigin()
Gets the origin address where the aglet was instantiated.


readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
public AgletInfo clone(String a, URL c) { try { AgletInfo clone = (AgletInfo)clone(); // clone.address = a; // clone.codebase = c.toExternalForm(); return clone; } catch (CloneNotSupportedException ex) { return null; } }

Throws:
java.io.IOException
java.lang.ClassNotFoundException

toString

public java.lang.String toString()
Gets a string representation of the object.