nl.iShopService.util
Class Validate

java.lang.Object
  extended by nl.iShopService.util.Validate

public final class Validate
extends java.lang.Object

Validates digital signature of bank's responses on Directory, Transaction or Status request

Author:
jvdm

Constructor Summary
Validate()
           
 
Method Summary
static boolean response(java.io.InputStream message, java.security.cert.X509Certificate certificate)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validate

public Validate()
Method Detail

response

public static boolean response(java.io.InputStream message,
                               java.security.cert.X509Certificate certificate)
                        throws java.lang.Exception
Parameters:
message - ImputStream, typically obtained from an HttpResponse response
certificate - banks certificate
Returns:
true is signature is valid
Throws:
java.lang.Exception