accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1314) Support destroyable map for creating authentication token
Date Thu, 18 Apr 2013 21:20:13 GMT

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

Keith Turner commented on ACCUMULO-1314:
----------------------------------------

If we had something like DestroyableMap, a user could use it in the following way.

{code:java}

   DestroyableMap tokenProps = new DestroyableMap();
   tokenProps.put("password", getPassword());
  
   PasswordToken token = new PasswordToken();
   token.init(tokenProps);
   tokenProps.destroy();


   //use token to do accumulo stuff
   
   token.destroy();

{code}


If AuthenticationToken were called Token, then I think we could should call DestroyableMap
TokenProperties instead.   But I think AuthenticationTokenProperties is a bit long.  Could
make it a static inner class of AuthenticationToken.  Then it could be AuthenticationToken.Propeties
or just Propeties in the code.



                
> Support destroyable map for creating authentication token
> ---------------------------------------------------------
>
>                 Key: ACCUMULO-1314
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1314
>             Project: Accumulo
>          Issue Type: Sub-task
>          Components: master, tserver
>            Reporter: Keith Turner
>            Assignee: John Vines
>             Fix For: 1.5.0
>
>
> A java properties object can be used to create Authentication tokens.  Properties use
Strings which are immutable.  It would be nice if something that allowed memory to be zeroed
were used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message