Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 304A618BA9 for ; Wed, 6 Jan 2016 05:36:40 +0000 (UTC) Received: (qmail 52287 invoked by uid 500); 6 Jan 2016 05:36:40 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 52230 invoked by uid 500); 6 Jan 2016 05:36:40 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 52208 invoked by uid 99); 6 Jan 2016 05:36:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2016 05:36:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D21812C0451 for ; Wed, 6 Jan 2016 05:36:39 +0000 (UTC) Date: Wed, 6 Jan 2016 05:36:39 +0000 (UTC) From: "Jiajia Li (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (DIRKRB-159) Having a decoartor for each type (like BER/CER/DER) of encoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRKRB-159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15085003#comment-15085003 ] Jiajia Li edited comment on DIRKRB-159 at 1/6/16 5:35 AM: ---------------------------------------------------------- Oh, so I will remove it to 2.0 was (Author: jiajia): Oh, so I will remove it to RC2. > Having a decoartor for each type (like BER/CER/DER) of encoding > --------------------------------------------------------------- > > Key: DIRKRB-159 > URL: https://issues.apache.org/jira/browse/DIRKRB-159 > Project: Directory Kerberos > Issue Type: Improvement > Reporter: Kai Zheng > Fix For: 2.0.0-RC1 > > > 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)