Class JCECrypt


  • public class JCECrypt
    extends Object
    The class Crypt provides generic methods to encryt and decrypt data. This class provides a pluggable architecture to encrypt and decrypt data, using the AMEncryption interface class. A class that implements AMEncryption must be specified via the system property: com.iplanet.security.encryptor. If none is provided, the default provided by iDSAME com.iplanet.services.util.JCEEncryption will be used.

    Additionally, it provides a method to check if the calling class has permission to call these methods. To enable the additional security, the property com.sun.identity.security.checkcaller must be set to true.

    • Constructor Detail

      • JCECrypt

        public JCECrypt()
    • Method Detail

      • encode

        public static String encode​(String clearText)
      • decode

        public static String decode​(String encoded)
        Decode an encoded string
        Parameters:
        encoded - The encoded string.
        Returns:
        The decoded string.