| Home >> All >> org >> apache >> turbine >> services >> [ crypto Javadoc ] |
| | org.apache.turbine.services.crypto.provider.* (4) |
org.apache.turbine.services.crypto: Javadoc index of package org.apache.turbine.services.crypto.
Package Samples:
org.apache.turbine.services.crypto.provider: Contains the Crypto Service providing you with a variety of Crypto algorithms.
Classes:
JavaCrypt: Implements the normal java.security.MessageDigest stream cipers. Base64 strings returned by this provider are correctly padded to multiples of four bytes. If you run into interoperability problems with other languages, especially perl and the Digest::MD5 module, note that the md5_base64 function from this package incorrectly drops the pad bytes. Use the MIME::Base64 package instead. If you upgrade from Turbine 2.1 and suddently your old stored passwords no longer work, please take a look at the OldJavaCrypt provider for bug-to-bug compatibility. This provider can be used as the default crypto algorithm ...
OldJavaCrypt: This is the Message Digest Implementation of Turbine 2.1. It does not pad the Base64 encryption of the Message Digests correctly but truncates after 20 chars. This leads to interoperability problems if you want to use e.g. database columns between two languages. If you upgrade an application from Turbine 2.1 and have already used the Security Service with encrypted passwords and no way to rebuild your databases, use this provider. It is bug-compatible. DO NOT USE THIS PROVIDER FOR ANY NEW APPLICATION! Nevertheless it can be used as the default crypto algorithm .
CryptoService: The Crypto Service manages the availability of various crypto sources. It provides a consistent interface to things like the various java.security Message Digest stuff or the Unix Crypt algorithm. It contains no actual crypto code so it should be fine to import/export everywhere.
ClearCrypt: This is a dummy for "cleartext" encryption. It goes through the notions of the CryptoAlgorithm interface but actually does nothing. It can be used as a replacement for the "encrypt = no" setting in the TR.props. Can be used as the default crypto algorithm
TurbineCrypto: This is a facade class for the CryptoService. Here are the static methods that call related methods of the various implementations of the Crypto Security Service, according to the settings in TurbineResources.
TurbineCryptoService: An implementation of CryptoService that uses either supplied crypto Algorithms (provided in Turbine.Services.properties) or tries to get them via the normal java mechanisms if this fails.
CryptoAlgorithm: This interface describes the various Crypto Algorithms that are handed out by the Crypto Service.
UnixCrypt: Implements Standard Unix crypt(3) for use with the Crypto Service.
CryptoDefaultTest
CryptoTest
| Home | Contact Us | Privacy Policy | Terms of Service |