Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 09CB6200BAD for ; Tue, 11 Oct 2016 03:46:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0847C160AEB; Tue, 11 Oct 2016 01:46:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 46AD7160AE1 for ; Tue, 11 Oct 2016 03:46:02 +0200 (CEST) Received: (qmail 62414 invoked by uid 500); 11 Oct 2016 01:46:01 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 62404 invoked by uid 99); 11 Oct 2016 01:46:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2016 01:46:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 45474E0159; Tue, 11 Oct 2016 01:46:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: smckinney@apache.org To: commits@directory.apache.org Message-Id: <24561ae36fe64812a406a303d4b9247d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: directory-fortress-realm git commit: FC-194 - Change password represenation from a char[] to a String Date: Tue, 11 Oct 2016 01:46:01 +0000 (UTC) archived-at: Tue, 11 Oct 2016 01:46:03 -0000 Repository: directory-fortress-realm Updated Branches: refs/heads/master 651907973 -> b715e6a68 FC-194 - Change password represenation from a char[] to a String Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/repo Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/commit/b715e6a6 Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/tree/b715e6a6 Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/diff/b715e6a6 Branch: refs/heads/master Commit: b715e6a68b4f194f345f27426145ac2b984dddbc Parents: 6519079 Author: Shawn McKinney Authored: Mon Oct 10 20:24:32 2016 -0500 Committer: Shawn McKinney Committed: Mon Oct 10 20:24:32 2016 -0500 ---------------------------------------------------------------------- .../org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/directory-fortress-realm/blob/b715e6a6/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java ---------------------------------------------------------------------- diff --git a/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java b/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java index 3c7429d..aedcdfa 100644 --- a/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java +++ b/impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java @@ -105,7 +105,7 @@ public class J2eePolicyMgrImpl implements J2eePolicyMgr @Override public TcPrincipal createSession( String userId, char[] password ) throws SecurityException { - User user = new User( userId, password ); + User user = new User( userId, new String ( password ) ); return createSession( user ); } @@ -115,7 +115,7 @@ public class J2eePolicyMgrImpl implements J2eePolicyMgr */ public TcPrincipal createSession( String userId, char[] password, List roles ) throws SecurityException { - User user = new User( userId, password ); + User user = new User( userId, new String ( password ) ); // Load the passed in role list into list of User requested roles: if ( CollectionUtils.isNotEmpty( roles ) )