directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kai Zheng (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRKRB-159) Having a decoartor for each type of encoding, like BER/CER/DER
Date Fri, 06 Feb 2015 06:55:34 GMT
Kai Zheng created DIRKRB-159:
--------------------------------

             Summary: Having a decoartor for each type of encoding, like BER/CER/DER
                 Key: DIRKRB-159
                 URL: https://issues.apache.org/jira/browse/DIRKRB-159
             Project: Directory Kerberos
          Issue Type: Improvement
            Reporter: Kai Zheng


Below is from [~elecharny]'s email, giving the thoughts:
{noformat}
we do the encoding/decoding in the ASN1 type instances.
That's ok, but as soon as we have to deal with various type of encoding
(BER/CER...) this cipple the code with if/else/then. 
What about having a decoartor for each type of encoding ?
{noformat}
Below is [~drankye]'s response in email:
{noformat}
I agree. If we're going to support BER and DER both well or new schemes,
then we need such. It won't introduce API change for the types and is only
for internal encoding/decoding implementation, right ?
Could you have a simple illustration or example, 
say how to do that for the simple Asn1Boolean type ? Thanks.
{noformat}



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

Mime
View raw message