psman.data
Class Certificate

java.lang.Object
  |
  +--psman.data.Certificate

public final class Certificate
extends java.lang.Object

The certificates and credentials.

Version:
$Id: Certificate.java,v 1.5 2003/11/04 08:22:54 tk4 Exp $
Author:
Martin Godisch

Constructor Summary
Certificate(byte[] id, byte[] value)
          Constructor, only for existing certifictes.
 
Method Summary
static byte[] computeID(byte[] value1, byte[] value2)
           
 boolean equals(psman.data.Certificate data)
           
 boolean equals(java.lang.Object o)
           
 byte[] getID()
          Return the database ID of this certificate.
 byte[] getValue()
          Return the binary value of this certificate.
 int hashCode()
          The hashcode represents the first 4 Bytes of the certificate's id.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Certificate

public Certificate(byte[] id,
                   byte[] value)
Constructor, only for existing certifictes.

Parameters:
id - the database ID of this certificate
value - the binary value of this certificate
Method Detail

getID

public byte[] getID()
Return the database ID of this certificate.

Returns:
the database ID of this certificate

getValue

public byte[] getValue()
Return the binary value of this certificate.

Returns:
the binary value of this certificate

equals

public boolean equals(psman.data.Certificate data)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
The hashcode represents the first 4 Bytes of the certificate's id.

Overrides:
hashCode in class java.lang.Object
Returns:
the hashcode of this object.

computeID

public static byte[] computeID(byte[] value1,
                               byte[] value2)


Copyright © 2003 DRIM Team. All Rights Reserved.