issrg.simplePERMIS
Class SimplePERMISSignatureVerifier

java.lang.Object
  extended by issrg.simplePERMIS.SimplePERMISSignatureVerifier
All Implemented Interfaces:
SignatureVerifier

public class SimplePERMISSignatureVerifier
extends java.lang.Object
implements SignatureVerifier

This class provides an implementation of the SignatureVerifier for used by SimplePERMIS. It ignores the verification of signatures.

Author:
Administrator

Constructor Summary
SimplePERMISSignatureVerifier()
          Creates a new instance of SimpleSAMSignatureVerifier
 
Method Summary
 boolean checkSignature(byte[] Value, byte[] Signature, java.lang.String algorithmID, TokenLocator Signer)
          This method checks if the Signature for the given Value has been signed by the Signer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePERMISSignatureVerifier

public SimplePERMISSignatureVerifier()
Creates a new instance of SimpleSAMSignatureVerifier

Method Detail

checkSignature

public boolean checkSignature(byte[] Value,
                              byte[] Signature,
                              java.lang.String algorithmID,
                              TokenLocator Signer)
                       throws PkiException
This method checks if the Signature for the given Value has been signed by the Signer. This is the default implementation. The method does not really check the signature but only check if the Value is an empty value or not. It returns true for all non-empty value.

Specified by:
checkSignature in interface SignatureVerifier
Parameters:
Value - is the byte array that had been signed
Signature - is the byte array of the resulting signature
algorithmID - is the String representation (dotted form) of the object identifier of the algorithm used for signing
Signer - is the Principal of the signer
Returns:
true, if the Value is not null and the Value contains an arrange with the length greater than 0; false otherwise
Throws:
PkiException - if any unrecoverable error occurs