Skip to content

Commit 9bb3c04

Browse files
committed
Updating to fix issues with transitive dependencies
1 parent eb328ec commit 9bb3c04

File tree

12 files changed

+41
-39
lines changed

12 files changed

+41
-39
lines changed

api/src/main/java/net/adamcin/httpsig/api/Base64.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* <p>Example:</p>
3737
*
3838
* <code>String encoded = Base64.encode( myByteArray );</code>
39-
* <br />
39+
* <br>
4040
* <code>byte[] myByteArray = Base64.decode( encoded );</code>
4141
*
4242
* <p>The <tt>options</tt> parameter, which appears in a few places, is used to pass

api/src/main/java/net/adamcin/httpsig/api/DefaultKeychain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public Keychain discard() {
144144

145145
/**
146146
*
147-
* @return
147+
* @return the current key
148148
* @throws NoSuchElementException if the keychain is empty
149149
*/
150150
public Key currentKey() {

api/src/main/java/net/adamcin/httpsig/api/Keychain.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public interface Keychain extends Iterable<Key> {
4343

4444
/**
4545
* Filter this keychain by a {@link Collection} of supported {@link Algorithm}s
46-
* @param algorithms
46+
* @param algorithms supported algorithms
4747
* @return a new {@link Keychain} containing only those keys which support at least one of the provided algorithms
4848
*/
4949
Keychain filterAlgorithms(Collection<Algorithm> algorithms);
@@ -59,8 +59,8 @@ public interface Keychain extends Iterable<Key> {
5959
Key currentKey();
6060

6161
/**
62-
* @param keyId
63-
* @return a {@link Map} where the values are the {@link Key}s and the map entry keys are the keyId's generated by the {@link KeyId}, o
62+
* @param keyId the KeyId
63+
* @return a {@link Map} where the values are the {@link Key}s and the map entry keys are the keyId's generated by the {@link KeyId}
6464
*/
6565
Map<String, Key> toMap(KeyId keyId);
6666

api/src/main/java/net/adamcin/httpsig/api/RequestContent.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ public Builder setRequestTarget(String method, String path) {
9292
/**
9393
* Adds a header name and value pair
9494
*
95-
* @param name
96-
* @param value
97-
* @return
95+
* @param name header name
96+
* @param value header value
97+
* @return the Builder in fluent fashion
9898
*/
9999
public Builder addHeader(final String name, final String value) {
100100
if (value != null) {
@@ -179,6 +179,7 @@ public RequestContent build() {
179179
* Returns the signature content as a byte array
180180
*
181181
* @param headers the list of headers to be included in the signed content
182+
* @param charset charset for decoding the content
182183
* @return the result of {@link #getContentString(java.util.List)} encoded using the provided {@link Charset}
183184
*/
184185
public byte[] getContent(List<String> headers, Charset charset) {
@@ -189,7 +190,7 @@ public byte[] getContent(List<String> headers, Charset charset) {
189190
* Returns the signature content as a String
190191
*
191192
* @param headers the list of headers to be included in the signed content
192-
* @return
193+
* @return formatted content to be signed
193194
*/
194195
public String getContentString(List<String> headers) {
195196
StringBuilder hashBuilder = new StringBuilder();

http-helpers/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
<dependency>
9999
<groupId>org.apache.httpcomponents</groupId>
100100
<artifactId>httpclient</artifactId>
101-
<version>4.1</version>
101+
<version>[4.3,5.0)</version>
102102
<scope>provided</scope>
103103
</dependency>
104104
<dependency>

http-helpers/src/main/java/net/adamcin/httpsig/http/servlet/ServletUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static RequestContent getRequestContent(HttpServletRequest request) {
7979
* Parse an {@link javax.servlet.http.HttpServletRequest} to build the {@link net.adamcin.httpsig.api.RequestContent}
8080
* @param request the HTTP Request
8181
* @param ignoreHeaders a collection of header names to ignore, in case they have been added by proxies
82-
* @return
82+
* @return the signable request content
8383
*/
8484
public static RequestContent getRequestContent(HttpServletRequest request, Collection<String> ignoreHeaders) {
8585
final Set<String> _ignore = new HashSet<String>();

pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888
<name>Mark Adamcin</name>
8989
<email>adamcin@gmail.com</email>
9090
<url>http://adamcin.net</url>
91-
<organization>Mashery</organization>
92-
<organizationUrl>http://www.mashery.com</organizationUrl>
91+
<organization>Infield Digital</organization>
92+
<organizationUrl>https://www.infielddigital.com</organizationUrl>
9393
<roles>
9494
<role>architect</role>
9595
<role>developer</role>
@@ -185,7 +185,7 @@
185185
<plugin>
186186
<groupId>com.github.github</groupId>
187187
<artifactId>site-maven-plugin</artifactId>
188-
<version>0.10</version>
188+
<version>0.12</version>
189189
<executions>
190190
<execution>
191191
<id>github-site-deploy</id>
@@ -219,15 +219,15 @@
219219
<plugin>
220220
<groupId>org.apache.maven.plugins</groupId>
221221
<artifactId>maven-release-plugin</artifactId>
222-
<version>2.5</version>
222+
<version>2.5.3</version>
223223
<configuration>
224224
<autoVersionSubmodules>true</autoVersionSubmodules>
225225
</configuration>
226226
</plugin>
227227
<plugin>
228228
<groupId>org.apache.maven.plugins</groupId>
229229
<artifactId>maven-site-plugin</artifactId>
230-
<version>3.3</version>
230+
<version>3.5.1</version>
231231
<configuration>
232232
<inputEncoding>utf-8</inputEncoding>
233233
</configuration>
@@ -251,7 +251,7 @@
251251
<plugin>
252252
<groupId>org.apache.maven.plugins</groupId>
253253
<artifactId>maven-project-info-reports-plugin</artifactId>
254-
<version>2.7</version>
254+
<version>2.9</version>
255255
</plugin>
256256
<plugin>
257257
<groupId>org.apache.maven.plugins</groupId>
@@ -325,7 +325,7 @@
325325
<dependency>
326326
<groupId>commons-io</groupId>
327327
<artifactId>commons-io</artifactId>
328-
<version>1.4</version>
328+
<version>[1.4,3.0)</version>
329329
<scope>provided</scope>
330330
</dependency>
331331
<dependency>
@@ -382,7 +382,7 @@
382382
<dependency>
383383
<groupId>net.adamcin.commons</groupId>
384384
<artifactId>net.adamcin.commons.testing</artifactId>
385-
<version>0.8.0</version>
385+
<version>[0.9.0,1.0.0)</version>
386386
<scope>test</scope>
387387
</dependency>
388388
</dependencies>

src/site/site.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<skin>
3131
<groupId>org.apache.maven.skins</groupId>
3232
<artifactId>maven-fluido-skin</artifactId>
33-
<version>1.3.0</version>
33+
<version>1.5</version>
3434
</skin>
3535
<googleAnalyticsAccountId>UA-37073514-1</googleAnalyticsAccountId>
3636
<custom>

ssh-bc/src/main/java/net/adamcin/httpsig/ssh/bc/PEMUtil.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public class PEMUtil {
5555

5656
/**
5757
* Read a single PEM-formatted key
58-
* @param is
59-
* @param passphrase
60-
* @return
61-
* @throws IOException
58+
* @param is input stream
59+
* @param passphrase passphrase protecting stream
60+
* @return the key if successful, null if not
61+
* @throws IOException if not successful because I/O
6262
*/
6363
public static Key readKey(InputStream is, final char[] passphrase) throws IOException {
6464
JcaPEMKeyConverter converter = new JcaPEMKeyConverter();
@@ -99,10 +99,10 @@ public static Key readKey(InputStream is, final char[] passphrase) throws IOExce
9999
/**
100100
*
101101
* Read a single PEM-formatted key
102-
* @param privateKeyFile
103-
* @param passphrase
104-
* @return
105-
* @throws IOException
102+
* @param privateKeyFile private key file
103+
* @param passphrase passphrase for protected file
104+
* @return key if successful
105+
* @throws IOException if not successful
106106
*/
107107
public static Key readKey(File privateKeyFile, final char[] passphrase) throws IOException {
108108
InputStream is = null;
@@ -120,10 +120,10 @@ public static Key readKey(File privateKeyFile, final char[] passphrase) throws I
120120
/**
121121
*
122122
* Read a single PEM-formatted key
123-
* @param keyBytes
124-
* @param passphrase
125-
* @return
126-
* @throws IOException
123+
* @param keyBytes data for key
124+
* @param passphrase passphrase
125+
* @return key if successful
126+
* @throws IOException if not successful
127127
*/
128128
public static Key readKey(byte[] keyBytes, final char[] passphrase) throws IOException {
129129
ByteArrayInputStream is = null;

ssh-jce/src/main/java/net/adamcin/httpsig/ssh/jce/AuthorizedKeys.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public static Keychain defaultKeychain() throws IOException {
8383
* @param authorizedKeysFile File in the RFC4253 authorized_keys format that every Linux admin knows and loves,
8484
* which contains a list of public keys which are allowed for authentication
8585
* @return a {@link Keychain} attached to the authorized_keys identities
86+
* @throws IOException for any failure to parse designated file
8687
*/
8788
public static Keychain newKeychain(File authorizedKeysFile) throws IOException {
8889
DefaultKeychain identities = new DefaultKeychain();

0 commit comments

Comments
 (0)