|
Agent System POND 1.0 (1.7.2000) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.cert.Certificate | +--PkgAgentSystem.Crypto.AgentIdentity | +--PkgAgentSystem.Crypto.AgentIdentityExtension
Extended identity of an agent. More information may be included, especially concerning the owner, like complete name,
address and credit card information. All the information in this is public, so think what you include in it.
The information is stored under a key. Standard keys are defined, but other can be freely used.
Field Summary | |
static String |
COUNTRY
Address of the owner: Countrs |
static String |
CREDIT_CARD_EXPIRES
Creditcard information on the owner: Expiry date |
static String |
CREDIT_CARD_NAME
Creditcard information on the owner: Issuer |
static String |
CREDIT_CARD_NUMBER
Creditcard information on the owner: Number |
static String |
CREDIT_CARD_OWNERNAME
Creditcard information on the owner: Name of owner as on the card |
static String |
EMAIL
Address of the owner: E-Mail address |
static String |
FIRST_NAME
First name of the owner |
static String |
LAST_NAME
Last name of the owner |
static String |
MIDDLE_INITIAL
Middle initial of the owner |
static String |
PROVINCE
Address of the owner: Province |
static String |
STREET
Address of the owner: Street |
static String |
TITLE
Title of the owner |
static String |
TOWN
Address of the owner: Town |
static String |
ZIP_CODE
Address of the owner: ZIP-code |
Fields inherited from class PkgAgentSystem.Crypto.AgentIdentity |
agentPublicKey,
agentPublicKeyName,
home,
id,
name,
ownerCertificate,
ownerName,
signAlgorithmAgent,
signAlgorithmOwner,
signatureAgent,
signatureOwner,
signed,
version |
Constructor Summary | |
(package private) |
AgentIdentityExtension()
|
protected |
AgentIdentityExtension(String type)
|
|
AgentIdentityExtension(String name,
String id,
URL home,
String ownerName)
Creates a new AgentIdentity which does not include an owner certificate. |
|
AgentIdentityExtension(String name,
String id,
URL home,
String agentPublicKeyName,
PublicKey agentPublicKey,
String ownerName,
Certificate ownerCertificate)
Creates a new AgentIdentity which does include an owner certificate and a public key of the agent. |
Method Summary | |
void |
addInformation(String key,
Serializable value)
Add information to the identity. |
protected void |
decodeData(byte[] buffer)
Restores the content of an identity from a buffer. |
protected byte[] |
getEncodedForSigning()
Returns the identity in an encoded form in an byte array. |
Object |
getInformation(String key)
Retrieves the information for this key from the identity. |
Enumeration |
getKeys()
Returns an enumeration of all keys, for which values are stored in this identity |
Methods inherited from class PkgAgentSystem.Crypto.AgentIdentity |
equals,
getAgentName,
getAgentPublicKeyName,
getAgentSignature,
getCertificate,
getClassificationStatus,
getEncoded,
getHomeAddress,
getID,
getOwnerCertificate,
getOwnerName,
getOwnerSignature,
getPublicKey,
getRegularCustomerIdentity,
hashCode,
isSigned,
setClassificationStatus,
sign,
toString,
verify,
verify,
verify |
Methods inherited from class java.security.cert.Certificate |
getType |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final String FIRST_NAME
public static final String LAST_NAME
public static final String MIDDLE_INITIAL
public static final String TITLE
public static final String STREET
public static final String TOWN
public static final String ZIP_CODE
public static final String PROVINCE
public static final String COUNTRY
public static final String EMAIL
public static final String CREDIT_CARD_OWNERNAME
public static final String CREDIT_CARD_NUMBER
public static final String CREDIT_CARD_EXPIRES
public static final String CREDIT_CARD_NAME
Constructor Detail |
AgentIdentityExtension()
protected AgentIdentityExtension(String type)
public AgentIdentityExtension(String name, String id, URL home, String ownerName)
name
- the name of the agentid
- the unique id of the agenthome
- the URL of the home agent-systemownerName
- the name of the owner of the agentAgentIdentity
public AgentIdentityExtension(String name, String id, URL home, String agentPublicKeyName, PublicKey agentPublicKey, String ownerName, Certificate ownerCertificate)
name
- the name of the agentid
- the unique id of the agenthome
- the URL of the home agent-systemagentPublicKeyName
- the name of the public key of the agent. Must be identical to the name used for storing the private key in the key-store of the agent.agentPublicKey
- the public key of the agentownerName
- the name of the owner of the agent (may be null)ownerCertificate
- the certificate of the owner of the agentAgentIdentity
Method Detail |
public void addInformation(String key, Serializable value) throws SignatureException
key
- the name under which to store the valuevalue
- the value to store (null to delete this key)public Object getInformation(String key)
key
- the key for the value to retrievepublic Enumeration getKeys()
Enumeration
of all keysprotected byte[] getEncodedForSigning() throws CertificateEncodingException
protected void decodeData(byte[] buffer) throws IOException, CertificateException, NoSuchAlgorithmException
getEncodedForSigning
.buffer
- the array of bytes from which to re-create the identitycl
- the classloader, which should be used to recreate all the objectsAgentIdentityFactory
|
Agent System POND 1.0 (1.7.2000) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |