You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




org.mozilla.jss.pkcs12
Class PasswordConverter

java.lang.Object
  extended by org.mozilla.jss.pkcs12.PasswordConverter
All Implemented Interfaces:
KeyGenerator.CharToByteConverter

public final class PasswordConverter
extends java.lang.Object
implements KeyGenerator.CharToByteConverter

Converts password chars to bytes. The output format is big-endian Unicode, with two zero bytes of null-termination at the end.


Constructor Summary
PasswordConverter()
           
 
Method Summary
 byte[] convert(char[] chars)
          Converts a password of Java characters into a password of bytes, using some encoding scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordConverter

public PasswordConverter()
Method Detail

convert

public byte[] convert(char[] chars)
Description copied from interface: KeyGenerator.CharToByteConverter
Converts a password of Java characters into a password of bytes, using some encoding scheme. The input char array must not be modified.

Specified by:
convert in interface KeyGenerator.CharToByteConverter