public interface ComponentService
GenericReference
class. These references must be
publicly visible properties of the MaskingComponent object using this service provider, or methods consuming them
will fail with InvalidDependencyException
. This requirement exists
in order to allow the masking engine to discover the dependencies of any MaskingComponent via reflection.Modifier and Type | Method and Description |
---|---|
<U> MaskingAlgorithm<U> |
getAlgorithmByName(AlgorithmInstanceReference reference,
MaskingAlgorithm.MaskingType type)
Get a MaskingAlgorithm object for the algorithm specified by the reference and type.
|
CryptoService |
getCryptoService(KeyReference reference)
Get a cryptographic service provider that wraps the key assigned to this component.
|
java.lang.String |
getInstanceName()
Get the name of this component instance.
|
LogService |
getLogService()
Get a Logger object that can be used to log messages.
|
java.io.InputStream |
openInputFile(FileReference fileReference)
Method to open a file resource by URI.
|
java.lang.String getInstanceName()
java.io.InputStream openInputFile(@Nonnull FileReference fileReference)
fileReference
- A reference to the file to be opened.<U> MaskingAlgorithm<U> getAlgorithmByName(@Nonnull AlgorithmInstanceReference reference, @Nonnull MaskingAlgorithm.MaskingType type)
U
- The data type masked by the returned algorithm, must exactly match what is requested in typereference
- A reference describing the algorithm instance to gettype
- The masking data type the named algorithm is expected maskCryptoService getCryptoService(KeyReference reference)
reference
- A reference to the key to use. Currently, the reference value must be "", referring to the
default algorithm key assigned to this algorithm.LogService getLogService()
MaskingLogService
object.