Skip navigation links

Package com.adaptris.core.security

Implementation of the core Service interface providing encryption and decryption functionality.

See: Description

Package com.adaptris.core.security Description

Implementation of the core Service interface providing encryption and decryption functionality.

A number of difference keystore types can be configured for storing the certificates required for encryption/decryption. Any sun keystore provider can be used, provided that it is added as a provider before any concrete implementations are initialised. The default SUN keystore implementation JKS (or JCEKS in JDK1.4) is provided as part of the JRE. Keystores may be stored remotely provided they are accessible via the HTTP or HTTPS protocol.

In additional to the standard keystore types the following are also supported within the Adapter :

When using single certificate implementations such as PKCS12, X509, XmlKeyInfo, then you also need to provide an alias (Constants.KEYSTORE_ALIAS) to be associated with the file.

Example keystore configuration would be

 
    <keystore-url xsi:type="java:com.adaptris.security.keystore.ConfiguredUrl">
      <url>file://localhost/path/keystore?keystoreType=JKS&keystorePassword=pwd</url>
    </keystore-url>
    <keystore-url xsi:type="java:com.adaptris.security.keystore.ConfiguredUrl">
      <url>file://localhost/path/keystore?keystoreType=X509?keystoreAlias=myAlias</url>
    </keystore-url>
    <keystore-url xsi:type="java:com.adaptris.security.keystore.ConfiguredUrl">
      <url>http://localhost/path/keystore?keystoreType=PKCS12?keystoreAlias=myAlias&keystorePassword=pwd</url>
    </keystore-url>
    <keystore-url xsi:type="java:com.adaptris.security.keystore.ConfiguredUrl">
      <url>http://host/path/keystore?keystoreType=JKS&keystorePassword=pwd</url>
    </keystore-url>
  
 

Skip navigation links