at.gv.egiz.pdfas.algorithmSuite
Class AlgorithmSuiteUtil

java.lang.Object
  extended byat.gv.egiz.pdfas.algorithmSuite.AlgorithmSuiteUtil

public class AlgorithmSuiteUtil
extends Object

Utility class for handling dynamic algorithm suites

Author:
dferbas

Constructor Summary
AlgorithmSuiteUtil()
           
 
Method Summary
static String evaluateReplaceAlgs(AlgorithmSuiteObject algSuite, ConnectorEnvironment environment, SignSignatureObject so)
          Creates new verify_xml, evaluates algorithm suite and replaces methods in verify_xml
static String extractAlgorithmSuiteString(String xmlResponse)
          Extract algorithm suite as optimized string from CreateXMLSignatureResponse
static boolean isDefaultCertAlg(String algsString, String defaultCertAlg)
           
static String removeAllWhitespace(String str)
          Helper method to remove whitespaces from a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlgorithmSuiteUtil

public AlgorithmSuiteUtil()
Method Detail

evaluateReplaceAlgs

public static String evaluateReplaceAlgs(AlgorithmSuiteObject algSuite,
                                         ConnectorEnvironment environment,
                                         SignSignatureObject so)
Creates new verify_xml, evaluates algorithm suite and replaces methods in verify_xml

Parameters:
algSuite - out-param empty algorithm suite object
environment - connector environment to load verify template
so - signsignator object
Returns:
verify xml

extractAlgorithmSuiteString

public static String extractAlgorithmSuiteString(String xmlResponse)
Extract algorithm suite as optimized string from CreateXMLSignatureResponse

Parameters:
xmlResponse -
Returns:
algorith suite string

isDefaultCertAlg

public static boolean isDefaultCertAlg(String algsString,
                                       String defaultCertAlg)

removeAllWhitespace

public static String removeAllWhitespace(String str)
Helper method to remove whitespaces from a string

Parameters:
str -
Returns:


Copyright © 2006-2010. All Rights Reserved.