Agent System POND 1.2 (28.2.2002)

PkgAgentSystem.Classification
Class CertificateWrapper

java.lang.Object
  |
  +--PkgAgentSystem.Classification.CertificateWrapper
All Implemented Interfaces:
AgentClassification, CertificateClassification, Serializable
Direct Known Subclasses:
RevocationCheckCertificateWrapper

public class CertificateWrapper
extends Object
implements CertificateClassification, Serializable

A class representing an additional classification by providing a certificate.

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
Serialized Form

Field Summary
protected  Certificate cert
          The certificate, which is presented as additional classification
 
Fields inherited from interface PkgAgentSystem.Classification.AgentClassification
ACCEPTED, CHECK_CURRENTLY_IMPOSSIBLE, CHECK_IMPOSSIBLE, IGNORE, REJECTED, REQUEST_CHECK, UNKNOWN_CLASSIFICATION
 
Constructor Summary
CertificateWrapper(Certificate cert)
          Creates a new classification with the provided certificate
 
Method Summary
 Certificate getCertificate()
          Retrieve the certificate for inspection, checking, ...
 int getClassificationStatus()
          Returns the current status of this classification.
 void setClassificationStatus(int newStatus)
          Sets the status of this classification.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cert

protected Certificate cert
The certificate, which is presented as additional classification
Constructor Detail

CertificateWrapper

public CertificateWrapper(Certificate cert)
Creates a new classification with the provided certificate
Parameters:
cert - the certificat to present as additional classification
Method Detail

getCertificate

public Certificate getCertificate()
Retrieve the certificate for inspection, checking, ...
Specified by:
getCertificate in interface CertificateClassification
Returns:
the certificate which is presented

getClassificationStatus

public int getClassificationStatus()
Returns the current status of this classification. Is one of the constants defined in the interface AgentClassification.
Specified by:
getClassificationStatus in interface AgentClassification
Returns:
the status of the classification
See Also:
AgentClassification

setClassificationStatus

public final void setClassificationStatus(int newStatus)
Sets the status of this classification. Must be one of the constants defined in the interface AgentClassification.
Specified by:
setClassificationStatus in interface AgentClassification
Parameters:
newStatus - the new status
Throws:
SecurityException - if the caller may not modify the status of the classification
See Also:
AgentClassification

Agent System POND 1.2 (28.2.2002)

Submit a bug

Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.