Package org.nuxeo.ecm.core.blob
Class DigestConfiguration
- java.lang.Object
-
- org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
-
- org.nuxeo.ecm.core.blob.DigestConfiguration
-
public class DigestConfiguration extends PropertyBasedConfiguration
Configuration for the digest.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_DIGEST_ALGORITHM
static String
DIGEST_ALGORITHM_PROPERTY
String
digestAlgorithm
Pattern
digestPattern
-
Fields inherited from class org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
properties, systemPropertyPrefix
-
-
Constructor Summary
Constructors Constructor Description DigestConfiguration(String digestAlgorithm)
DigestConfiguration(String systemPropertyPrefix, Map<String,String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getDigestAlgorithm()
protected Pattern
getDigestPattern()
boolean
isValidDigest(String digest)
-
Methods inherited from class org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
getBooleanProperty, getIntProperty, getLongProperty, getProperty, getProperty
-
-
-
-
Field Detail
-
DIGEST_ALGORITHM_PROPERTY
public static final String DIGEST_ALGORITHM_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_DIGEST_ALGORITHM
public static final String DEFAULT_DIGEST_ALGORITHM
- See Also:
- Constant Field Values
-
digestAlgorithm
public final String digestAlgorithm
-
digestPattern
public final Pattern digestPattern
-
-
Constructor Detail
-
DigestConfiguration
public DigestConfiguration(String digestAlgorithm)
-
DigestConfiguration
public DigestConfiguration(String systemPropertyPrefix, Map<String,String> properties)
-
-
Method Detail
-
getDigestAlgorithm
protected String getDigestAlgorithm()
-
getDigestPattern
protected Pattern getDigestPattern()
-
isValidDigest
public boolean isValidDigest(String digest)
-
-