com.sun.sgs.impl.auth
Class PasswordFileEditor

java.lang.Object
  extended by com.sun.sgs.impl.auth.PasswordFileEditor

public final class PasswordFileEditor
extends Object

This is a simple utility program used to create the password files that are consumed by NamePasswordAuthenticator. The password files consist of one entry per line, where each entry has a name, some whitespace, a SHA-256 hashed password encoded via a call to NamePasswordAuthenticator.encodeBytes, and finally a newline.


Method Summary
static void main(String[] args)
          Main-line for this utility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
                 throws Exception
Main-line for this utility. This utility takes three arguments on the command line. The first argument is the file to update, the second argument is the user name, and the third argument is that user's password.

Parameters:
args - the arguments for this utility
Throws:
Exception - if anything fails

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved