Skip to content
Permalink
Browse files
have a default constructor and algo
Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
  • Loading branch information
davidkarlsen committed Apr 3, 2019
1 parent a6e9544 commit 61605d1675c18e50637240c5a4777babddb53ff1
Showing 1 changed file with 5 additions and 0 deletions.
@@ -27,6 +27,7 @@
import javax.ws.rs.ext.WriterInterceptor;
import javax.ws.rs.ext.WriterInterceptorContext;

import org.apache.cxf.common.util.MessageDigestInputStream;
import org.apache.cxf.io.CacheAndWriteOutputStream;
import org.apache.cxf.rs.security.httpsignature.utils.SignatureHeaderUtils;

@@ -39,6 +40,10 @@ public class ClientDigestInterceptor implements WriterInterceptor {
private static final String DIGEST_HEADER_NAME = "Digest";
private final String digestAlgorithmName;

public ClientDigestInterceptor() {
this(MessageDigestInputStream.ALGO_SHA_256);
}

public ClientDigestInterceptor(String digestAlgorithmName) {
this.digestAlgorithmName = digestAlgorithmName;
}

0 comments on commit 61605d1

Please sign in to comment.