org.apache.jetspeed.security.util
Class PBEPasswordTool
java.lang.Object
org.apache.jetspeed.security.util.PBEPasswordTool
- Direct Known Subclasses:
- PBEPasswordService
public class PBEPasswordTool
- extends java.lang.Object
PBEPasswordTool encodes and decodes user passwords using Password Based encryptionl
- Version:
- $Id$
- Author:
- Ate Douma
Method Summary |
java.lang.String |
decode(java.lang.String userName,
java.lang.String encodedPassword)
|
java.lang.String |
encode(java.lang.String userName,
java.lang.String clearTextPassword)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PBEPasswordTool
public PBEPasswordTool(java.lang.String pbePassword)
throws java.security.spec.InvalidKeySpecException,
java.security.NoSuchAlgorithmException
- Throws:
java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmException
encode
public java.lang.String encode(java.lang.String userName,
java.lang.String clearTextPassword)
throws SecurityException
- Throws:
SecurityException
decode
public java.lang.String decode(java.lang.String userName,
java.lang.String encodedPassword)
throws SecurityException
- Throws:
SecurityException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.