Return-Path: X-Original-To: apmail-oltu-dev-archive@www.apache.org Delivered-To: apmail-oltu-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 16FD211D7C for ; Sat, 12 Apr 2014 10:30:33 +0000 (UTC) Received: (qmail 4996 invoked by uid 500); 12 Apr 2014 10:30:32 -0000 Delivered-To: apmail-oltu-dev-archive@oltu.apache.org Received: (qmail 4923 invoked by uid 500); 12 Apr 2014 10:30:27 -0000 Mailing-List: contact dev-help@oltu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@oltu.apache.org Delivered-To: mailing list dev@oltu.apache.org Received: (qmail 4915 invoked by uid 99); 12 Apr 2014 10:30:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Apr 2014 10:30:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [74.125.83.52] (HELO mail-ee0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Apr 2014 10:30:19 +0000 Received: by mail-ee0-f52.google.com with SMTP id e49so4865543eek.39 for ; Sat, 12 Apr 2014 03:29:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=RVee9nWTqebVZ7ZhpOAlTZSY5AEQ0gWiiQn/r6H+sKE=; b=DnBrZN7IWLEd+Q3RNn8C5Wh4pZU4yNO8EUTadtKZqGiWw0Ax08DEhi2a7u6flWbZ1m yNezNQewK0M7BmbqNE7iUI5Lk8igiffKCdsOU8WtG2PvZJQPyq2M50m94VJdSU89BWNG CzytmA2xZWIgQAutYbWV6QBQeLrmeDcKvekw3cjZljZbgbuDOn7XbZHtqIAMrjyqE+fT ACAqlQxwpwkrBFTBQwx/ZSIxJNxCk0Z60NEIHYr7FVmprePlSzx80TVf0IhJSDCXWQsF LK5AkE5UIHFkphWfoL19SWeA78hqlNy33ReVIQUZGhQlbgVNCSPkVuS1BCVAQuRJVY/V UChA== X-Gm-Message-State: ALoCoQlDynzLc+8FVHyYkO99wtuL2R56FeT7lvS37Tq7cIlalM8wMEvweusdv6sOSHfbuPEPJXhE X-Received: by 10.14.214.68 with SMTP id b44mr36530838eep.0.1397298598168; Sat, 12 Apr 2014 03:29:58 -0700 (PDT) Received: from [10.54.236.147] ([88.128.80.67]) by mx.google.com with ESMTPSA id x46sm23766779een.17.2014.04.12.03.29.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 12 Apr 2014 03:29:57 -0700 (PDT) From: =?utf-8?Q?=C5=81ukasz_Dywicki?= Content-Type: multipart/alternative; boundary="Apple-Mail=_D11E010F-BE7B-4B66-AE67-78BC3968BA26" Message-Id: <5949B9B9-D117-41DF-AD41-71F6FB231E19@code-house.org> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: svn commit: r1583609 - in /oltu/trunk/jose/jws: ./ src/main/java/org/apache/oltu/jose/jws/ src/main/java/org/apache/oltu/jose/jws/signature/impl/ Date: Sat, 12 Apr 2014 12:29:54 +0200 References: <20140401105629.949492388999@eris.apache.org> <390C2D23-D265-4490-8D90-14F299D46DEA@adobe.com> To: dev@oltu.apache.org In-Reply-To: <390C2D23-D265-4490-8D90-14F299D46DEA@adobe.com> X-Mailer: Apple Mail (2.1874) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_D11E010F-BE7B-4B66-AE67-78BC3968BA26 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 If thiss class contains just constants you can make it as interface and = skip repeated "public static final=E2=80=9D and also avoid checkstyle = crying about constructor. :) Cheers, =C5=81ukasz Dywicki -- luke@code-house.org Twitter: ldywicki Blog: http://dywicki.pl Code-House - http://code-house.org Wiadomo=C5=9B=C4=87 napisana przez Antonio Sanso w = dniu 11 kwi 2014, o godz. 14:45: > hi Simo +1 >=20 > Maybe we can leave in the same bundle though. Just not in the impl = package=E2=80=A6 >=20 > regards >=20 > antonio >=20 > On Apr 11, 2014, at 1:51 PM, Simone Tripodi = wrote: >=20 >> Hi Tonino, >>=20 >> just few considerations: >>=20 >>> +public class JwsConstants { >>> + >>> + public static final String RS256 =3D "RS256"; >>> + >>> + public static final String RS384 =3D "RS384"; >>> + >>> + public static final String RS512 =3D "RS512"; >>> +} >>=20 >> I'd reduce this class constructor as 'private' >>=20 >>>=20 >>> Added: = oltu/trunk/jose/jws/src/main/java/org/apache/oltu/jose/jws/signature/impl/= PrivateKey.java >>=20 >> I wouldn't add that classes to a generic 'impl' package, they refer = to >> specific 'java.security' implementation, so I would suggest to: >>=20 >> * having them implemented in a separated module/bundle >>=20 >> * package name be renamed >>=20 >> WDYT? >> Best, >> -Simo >=20 --Apple-Mail=_D11E010F-BE7B-4B66-AE67-78BC3968BA26--