public class IntegrityPreservingUriEncryption extends Object implements SymmetricPathEncryptionService
| Constructor and Description |
|---|
IntegrityPreservingUriEncryption(PathEncryptorDecryptor pathEncryptorDecryptor) |
| Modifier and Type | Method and Description |
|---|---|
Uri |
decrypt(AuthPathEncryptionSecretKey pathEncryptionSecretKey,
Uri bucketPath)
Decrypts each URI segment separately and composes them back in same order.
|
protected String |
decryptorAndDecoder(PathSegmentWithSecretKeyWith keyAndSegment,
PathEncryptorDecryptor pathEncryptorDecryptor) |
Uri |
encrypt(AuthPathEncryptionSecretKey pathEncryptionSecretKey,
Uri bucketPath)
Encrypts each URI segment separately and composes them back in same order.
|
protected String |
encryptorAndEncoder(PathSegmentWithSecretKeyWith keyAndSegment,
PathEncryptorDecryptor pathEncryptorDecryptor) |
protected MessageDigest |
getDigest()
Parent path authentication digest.
|
@Inject public IntegrityPreservingUriEncryption(PathEncryptorDecryptor pathEncryptorDecryptor)
public Uri encrypt(AuthPathEncryptionSecretKey pathEncryptionSecretKey, Uri bucketPath)
encrypt in interface SymmetricPathEncryptionServicepublic Uri decrypt(AuthPathEncryptionSecretKey pathEncryptionSecretKey, Uri bucketPath)
decrypt in interface SymmetricPathEncryptionServiceprotected MessageDigest getDigest()
protected String decryptorAndDecoder(PathSegmentWithSecretKeyWith keyAndSegment, PathEncryptorDecryptor pathEncryptorDecryptor)
protected String encryptorAndEncoder(PathSegmentWithSecretKeyWith keyAndSegment, PathEncryptorDecryptor pathEncryptorDecryptor)
Copyright © 2020. All rights reserved.