IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.apps.util.passphrase
Class Util

java.lang.Object
  extended by iaik.apps.util.passphrase.Util

public class Util
extends java.lang.Object

This class provides static helper method for this package.

Author:
Karl Scheibelhofer

Constructor Summary
Util()
           
 
Method Summary
static java.lang.String fixString(java.lang.String str)
          Takes the given string and tries to fix any errors like null characters.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

fixString

public static java.lang.String fixString(java.lang.String str)
Takes the given string and tries to fix any errors like null characters. If it encounters a null character, it truncates the string at this position. Other non-printable characters are changed to single whitespaces. This method is used to correct strings from PKCS#11 modules which are often non-compliant to the PKCS#11 specification.

Parameters:
str - The string to fix.
Returns:
The corrected string.

IAIK PKCS#11 Provider API Documentation
version 1.6

IAIK JavaSecurity Website http://jce.iaik.tugraz.at/

IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2004, IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.
version 1.6