Skip to content
Browse files

Add support for ssl keystore to fluent api

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
  • Loading branch information...
1 parent 8002c12 commit 5ecbb3dde9ad11bd35eafa4d7506474600985b39 @adreghiciu adreghiciu committed Jan 30, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 server-provider/src/main/java/org/sonatype/tests/http/server/fluent/Server.java
View
6 server-provider/src/main/java/org/sonatype/tests/http/server/fluent/Server.java
@@ -75,6 +75,12 @@ public Server port(int port)
return this;
}
+ public Server withKeystore(final String keystore, final String password)
+ {
+ serverProvider.setSSL( keystore, password );
+ return this;
+ }
+
public ServeContext serve(String pattern)
{
return new ServeContext(serverProvider, pattern, this );

0 comments on commit 5ecbb3d

Please sign in to comment.
Something went wrong with that request. Please try again.