IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.apps.util.passphrase
Interface PassphraseConstraints


public interface PassphraseConstraints

Interface to check passphrases for certain properties.

Author:
Karl Scheibelhofer

Method Summary
 java.lang.String isPassphraseValid(char[] passphrase)
          Return true, to accept the passphrase.
 

Method Detail

isPassphraseValid

java.lang.String isPassphraseValid(char[] passphrase)
Return true, to accept the passphrase. If you clone this array, be sure to delete (overwrite) it after use. Also avoid constructing a String from it.

Returns:
Null to accept, otherwise an error message.

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