Interface ISensitiveParameterHandler

  • All Known Implementing Classes:
    ServerSecurityManager

    public interface ISensitiveParameterHandler
    Interface used for sensitive parameter encoding and decoding with keys exchanged between the server and the client.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      java.lang.StringdecodeParameter​(java.lang.String data)
      Decodes a sensitive information device parameter using the previously exchanged keys.
      java.lang.StringencodeParameter​(java.lang.String param)
      Encodes a sensitive information device parameter using the previously exchanged keys.
    • Method Detail

      • decodeParameter

        java.lang.String decodeParameter​(java.lang.String data)
                                  throws java.io.UnsupportedEncodingException,
                                         java.security.NoSuchAlgorithmException,
                                         javax.crypto.NoSuchPaddingException,
                                         java.security.InvalidKeyException,
                                         java.security.InvalidAlgorithmParameterException,
                                         javax.crypto.IllegalBlockSizeException,
                                         javax.crypto.BadPaddingException,
                                         java.security.DigestException
        Decodes a sensitive information device parameter using the previously exchanged keys.
        Parameters:
        data - The base64 encoded data.
        Returns:
        The decoded string.
        Throws:
        java.lang.IllegalArgumentException - If the data encoding is invalid (not base64).
        javax.crypto.NoSuchPaddingException
        java.security.NoSuchAlgorithmException
        java.security.InvalidAlgorithmParameterException
        java.security.InvalidKeyException
        javax.crypto.BadPaddingException
        javax.crypto.IllegalBlockSizeException
        java.security.DigestException
        java.io.UnsupportedEncodingException
      • encodeParameter

        java.lang.String encodeParameter​(java.lang.String param)
                                  throws java.io.UnsupportedEncodingException,
                                         java.security.NoSuchAlgorithmException,
                                         javax.crypto.NoSuchPaddingException,
                                         java.security.InvalidKeyException,
                                         java.security.InvalidAlgorithmParameterException,
                                         javax.crypto.IllegalBlockSizeException,
                                         javax.crypto.BadPaddingException
        Encodes a sensitive information device parameter using the previously exchanged keys.
        Parameters:
        param - The parameter.
        Returns:
        The base64 encoded data.
        Throws:
        java.lang.IllegalArgumentException - If the data encoding is invalid (not base64).
        javax.crypto.NoSuchPaddingException
        java.security.NoSuchAlgorithmException
        java.security.InvalidAlgorithmParameterException
        java.security.InvalidKeyException
        javax.crypto.BadPaddingException
        javax.crypto.IllegalBlockSizeException
        java.io.UnsupportedEncodingException