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
public abstract class EncryptionService extends CoreSecurityService
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
Constructors Constructor Description EncryptionService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Output
doEncryption(byte[] payload, Alias remoteAlias)
void
doService(AdaptrisMessage m)
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
-
-
-
-
Method Detail
-
doService
public final void doService(AdaptrisMessage m) throws ServiceException
Description copied from interface:Service
Apply the service to the message.
- Parameters:
m
- theAdaptrisMessage
to process- Throws:
ServiceException
- wrapping any underlyingException
s- See Also:
Service.doService(AdaptrisMessage)
-
doEncryption
protected abstract Output doEncryption(byte[] payload, Alias remoteAlias) throws AdaptrisSecurityException
- Throws:
AdaptrisSecurityException
-
-