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)

Reply via email to