directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiajia Li (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DIRKRB-258) use the random2Key in generateKeys
Date Mon, 25 May 2015 09:01:17 GMT

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

Jiajia Li updated DIRKRB-258:
-----------------------------
    Description: 
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.

  was:Create randomBytes through randomProvider in random2Key function of EncryptionHandler.java.


> 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)

Mime
View raw message