You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (JIRA)" <ji...@apache.org> on 2016/10/11 03:28:20 UTC

[jira] [Commented] (FC-194) Change password represenation from a char[] to a String

    [ https://issues.apache.org/jira/browse/FC-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15564312#comment-15564312 ] 

Shawn McKinney commented on FC-194:
-----------------------------------

1. core user entity chgs:

public User( String userId, String  password )
public User( String userId, String password, String roleName )
public User( String userId, String password, String[] roleNames )
public User( String userId, String password, String roleName, String ou )
public String getPassword()
public void setPassword(String password)
public String getNewPassword()
public void setNewPassword(String newPassword)

2. core mgr api chgs:

AdminMgr:
void changePassword( User user, String newPassword )

AccessMgr:
void resetPassword( User user, String newPassword )
void changePassword( User user, String newPassword )

3. realm interface chgs

J2eePolicyMgr:
boolean authenticate( String userId, String password ) throws SecurityException;
TcPrincipal createSession( String userId, String password ) throws SecurityException;
TcPrincipal createSession( String userId, String password, List<String> roles ) throws SecurityException;

TcAccessMgrImpl:
public Principal authenticate( String userId, String password )


Tc7AccessMgrProxy:
public Principal authenticate( String userId, String password )

** req's new proxy jar deployed to tomcat-home/lib


4. rest svc interface chgs:

3 sample svcs under src/test/resources were changed for passwords

addUser1:
<FortRequest>
...
   <password>password</password>
</FortRequest>

createSession:
<FortRequest>
  <contextId>HOME</contextId>
  <entity xsi:type="user" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <userId>emtestuser1</userId>
    <password>mypassword</password>
  </entity>
</FortRequest>

emTestAuthN:
<FortRequest>
  <contextId>HOME</contextId>
  <entity xsi:type="user" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <userId>emtestuser1</userId>
    <password>mypassword</password>
  </entity>
</FortRequest>

> Change password represenation from a char[] to a String
> -------------------------------------------------------
>
>                 Key: FC-194
>                 URL: https://issues.apache.org/jira/browse/FC-194
>             Project: FORTRESS
>          Issue Type: Improvement
>    Affects Versions: 1.0.1
>            Reporter: Shawn McKinney
>            Assignee: Shawn McKinney
>             Fix For: 2.0.0-RC1
>
>
> as discussed on this ML thread:
> http://mail-archives.apache.org/mod_mbox/directory-fortress/201610.mbox/%3CF5EE379C-DB2A-41A8-99E5-76FD9933BEBE%40apache.org%3E



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)