Package com.iizix.gyro
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
Modifier and TypeMethodDescriptiondecodeParameter
(String data) Decodes a sensitive information device parameter using the previously exchanged keys.encodeParameter
(String param) Encodes a sensitive information device parameter using the previously exchanged keys.
Method Details
decodeParameter
String decodeParameter(String data) throws UnsupportedEncodingException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, DigestException Decodes a sensitive information device parameter using the previously exchanged keys.- Parameters:
data
- The base64 encoded data.- Returns:
- The decoded string.
- Throws:
IllegalArgumentException
- If the data encoding is invalid (not base64).NoSuchPaddingException
NoSuchAlgorithmException
InvalidAlgorithmParameterException
InvalidKeyException
BadPaddingException
IllegalBlockSizeException
DigestException
UnsupportedEncodingException
encodeParameter
String encodeParameter(String param) throws UnsupportedEncodingException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException Encodes a sensitive information device parameter using the previously exchanged keys.- Parameters:
param
- The parameter.- Returns:
- The base64 encoded data.
- Throws:
IllegalArgumentException
- If the data encoding is invalid (not base64).NoSuchPaddingException
NoSuchAlgorithmException
InvalidAlgorithmParameterException
InvalidKeyException
BadPaddingException
IllegalBlockSizeException
UnsupportedEncodingException