Skip to content

Commit

Permalink
Excavator: Migrate to the logsafe SafeLogger API
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot committed Feb 4, 2022
1 parent d7fc205 commit 3b3e310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions crypto-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies {
testCompile "org.assertj:assertj-core"
testCompile "org.mockito:mockito-core"
testCompile 'org.openjdk.jmh:jmh-core'
implementation 'com.palantir.safe-logging:logger'
}

project.task(type: JavaExec, 'benchmarks') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import com.palantir.crypto2.cipher.SeekableCipher;
import com.palantir.crypto2.cipher.SeekableCipherFactory;
import com.palantir.crypto2.keys.KeyMaterial;
import com.palantir.logsafe.logger.SafeLogger;
import com.palantir.logsafe.logger.SafeLoggerFactory;
import com.palantir.seekio.SeekableInput;
import java.io.FilterOutputStream;
import java.io.IOException;
Expand All @@ -33,12 +35,10 @@
import javax.crypto.CipherOutputStream;
import javax.crypto.SecretKey;
import org.apache.commons.crypto.stream.CtrCryptoOutputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class CryptoStreamFactory {

private static final Logger log = LoggerFactory.getLogger(CryptoStreamFactory.class);
private static final SafeLogger log = SafeLoggerFactory.get(CryptoStreamFactory.class);
private static final Properties PROPS = ApacheCiphers.forceOpenSsl(new Properties());
private static final String AES_ALGORITHM = "AES/CTR/NoPadding";

Expand Down

0 comments on commit 3b3e310

Please sign in to comment.