-
- All Implemented Interfaces:
-
android.os.Parcelable,org.readium.r2.shared.JSONable
public final class Encryption implements JSONable, Parcelable
Indicates that a resource is encrypted/obfuscated and provides relevant information for decryption.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEncryption.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringalgorithmprivate final Stringcompressionprivate final LongoriginalLengthprivate final Stringprofileprivate final Stringscheme
-
Method Summary
Modifier and Type Method Description final StringgetAlgorithm()final StringgetCompression()final LonggetOriginalLength()final StringgetProfile()final StringgetScheme()JSONObjecttoJSON()Serializes an Encryption to its RWPM JSON representation. -
-
Constructor Detail
-
Encryption
Encryption(String algorithm, String compression, Long originalLength, String profile, String scheme)
- Parameters:
algorithm- Identifies the algorithm used to encrypt the resource (URI).compression- Compression method used on the resource.originalLength- Original length of the resource in bytes before compression and/or encryption.profile- Identifies the encryption profile used to encrypt the resource (URI).scheme- Identifies the encryption scheme used to encrypt the resource (URI).
-
-
Method Detail
-
getAlgorithm
final String getAlgorithm()
-
getCompression
final String getCompression()
-
getOriginalLength
final Long getOriginalLength()
-
getProfile
final String getProfile()
-
toJSON
JSONObject toJSON()
Serializes an Encryption to its RWPM JSON representation.
-
-
-
-