directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
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 GMT
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 <smckinney@apache.org>
Authored: Mon Oct 10 20:24:32 2016 -0500
Committer: Shawn McKinney <smckinney@apache.org>
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<String>
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 ) )


Mime
View raw message