You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Jiajia Li (JIRA)" <ji...@apache.org> on 2015/08/03 05:38:04 UTC

[jira] [Resolved] (DIRKRB-258) use the random2Key in generateKeys

     [ https://issues.apache.org/jira/browse/DIRKRB-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiajia Li resolved DIRKRB-258.
------------------------------
    Resolution: Invalid

> use the random2Key in generateKeys
> ----------------------------------
>
>                 Key: DIRKRB-258
>                 URL: https://issues.apache.org/jira/browse/DIRKRB-258
>             Project: Directory Kerberos
>          Issue Type: Improvement
>            Reporter: Jiajia Li
>            Assignee: Xu Yaning
>
> For example: in BackendTest.java
> {code}
>     protected List<EncryptionKey> generateKeys(String principal) {
>         String passwd = UUID.randomUUID().toString();
>         try {
>             return EncryptionUtil.generateKeys(principal, passwd, getEncryptionTypes());
>         } catch (KrbException e) {
>             throw new RuntimeException("Failed to create keys", e);
>         }
>     }
> {code}
> change to use randomProvider and random2Key to create EncryptionKey.



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