Package com.adaptris.core.security
Class EncryptionService
java.lang.Object
com.adaptris.core.ServiceImp
com.adaptris.core.security.CoreSecurityService
com.adaptris.core.security.EncryptionService
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,MessageEventGenerator
,Service
,StateManagedComponent
- Direct Known Subclasses:
EncryptionOnlyService
,EncryptionSigningService
,SigningService
Base case for performing encryption and signing.
-
Field Summary
Fields inherited from class com.adaptris.core.security.CoreSecurityService
branchingEnabled
Fields inherited from class com.adaptris.core.ServiceImp
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Output
doEncryption
(byte[] payload, Alias remoteAlias) final void
Apply the service to the message.Methods inherited from class com.adaptris.core.security.CoreSecurityService
addKeystoreUrl, closeService, getEncryptionAlgorithm, getFailId, getKeystoreUrls, getLocalPartner, getPrivateKeyPasswordProvider, getRemotePartner, getRemotePartnerMetadataKey, getSecurityFactory, getSuccessId, initService, isBranching, prepare, setEncryptionAlgorithm, setFailId, setKeystoreUrls, setLocalPartner, setPrivateKeyPasswordProvider, setRemotePartner, setRemotePartnerMetadataKey, setSecurityFactory, setSuccessId
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
Constructor Details
-
EncryptionService
public EncryptionService()
-
-
Method Details
-
doService
Description copied from interface:Service
Apply the service to the message.
- Parameters:
m
- theAdaptrisMessage
to process- Throws:
ServiceException
- wrapping any underlyingException
s- See Also:
-
doEncryption
protected abstract Output doEncryption(byte[] payload, Alias remoteAlias) throws AdaptrisSecurityException - Throws:
AdaptrisSecurityException
-