Package com.adaptris.xml.security
Class RawXmlEncryptionFactory
- java.lang.Object
-
- com.adaptris.security.SecurityServiceFactory
-
- com.adaptris.xml.security.XmlEncFactory
-
- com.adaptris.xml.security.RawXmlEncryptionFactory
-
- All Implemented Interfaces:
LicensedComponent
public class RawXmlEncryptionFactory extends XmlEncFactory
Implementation of SecurityServiceFactory for handling XML Encryption.If using this factory, then the entire document is encrypted and wrapped in a single
This is pure Encryption implementation, any attempt to do signing will cause a UnsupportedOperationException to be thrown.EncryptedDataelement with the associated MimeTypeThe underlying encryption facility only allows for the following types of (the key length is implicit in the algorithm type and does not need to be specified) :
- TRIPLEDES_CBC
- AES256_CBC
- AES192_CBC
- AES192_CBC
- See Also:
XmlEncryptionFactory
In the adapter configuration file this class is aliased as raw-xml-encryption-factory. which is the preferred alternative to the fully qualified classname when building your configuration.
License Required: STANDARD
-
-
Field Summary
-
Fields inherited from class com.adaptris.security.SecurityServiceFactory
log
-
-
Constructor Summary
Constructors Constructor Description RawXmlEncryptionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SecurityServicebuild()java.lang.StringgetEncryptedDataEncoding()java.lang.StringgetEncryptedDataMimeType()java.lang.StringgetEncryptedDataType()voidsetEncryptedDataEncoding(java.lang.String encoding)voidsetEncryptedDataMimeType(java.lang.String s)voidsetEncryptedDataType(java.lang.String s)-
Methods inherited from class com.adaptris.xml.security.XmlEncFactory
createService, getIdGenerator, isEnabled, setIdGenerator
-
Methods inherited from class com.adaptris.security.SecurityServiceFactory
defaultInstance
-
-
-
-
Method Detail
-
build
protected SecurityService build() throws AdaptrisSecurityException
- Specified by:
buildin classXmlEncFactory- Throws:
AdaptrisSecurityException
-
getEncryptedDataMimeType
public java.lang.String getEncryptedDataMimeType()
- Returns:
- the mimeType
-
setEncryptedDataMimeType
public void setEncryptedDataMimeType(java.lang.String s)
- Parameters:
s- the mimeType to set
-
getEncryptedDataEncoding
public java.lang.String getEncryptedDataEncoding()
- Returns:
- the encoding
-
setEncryptedDataEncoding
public void setEncryptedDataEncoding(java.lang.String encoding)
- Parameters:
encoding- the encoding to set
-
getEncryptedDataType
public java.lang.String getEncryptedDataType()
- Returns:
- the type
-
setEncryptedDataType
public void setEncryptedDataType(java.lang.String s)
- Parameters:
s- the type to set
-
-