public class ClientDataEncoderImpl extends Object implements ClientDataEncoder
Constructor and Description |
---|
ClientDataEncoderImpl(URLEncoder urlEncoder,
String passphrase,
org.slf4j.Logger logger,
String applicationPackageName,
AlertManager alertManager) |
Modifier and Type | Method and Description |
---|---|
ClientDataSink |
createSink()
Creates a sink for client data.
|
ObjectInputStream |
decodeClientData(String clientData)
Decodes data previously obtained from
ClientDataSink.getClientData() . |
ObjectInputStream |
decodeEncodedClientData(String clientData)
Decodes client data obtained via
ClientDataSink.getEncodedClientData() . |
public ClientDataEncoderImpl(URLEncoder urlEncoder, @Symbol(value="tapestry.hmac-passphrase") String passphrase, org.slf4j.Logger logger, @Symbol(value="tapestry.app-package") String applicationPackageName, AlertManager alertManager) throws UnsupportedEncodingException
UnsupportedEncodingException
public ClientDataSink createSink()
ClientDataEncoder
createSink
in interface ClientDataEncoder
public ObjectInputStream decodeClientData(String clientData)
ClientDataEncoder
ClientDataSink.getClientData()
.decodeClientData
in interface ClientDataEncoder
clientData
- encoded client datapublic ObjectInputStream decodeEncodedClientData(String clientData) throws IOException
ClientDataEncoder
ClientDataSink.getEncodedClientData()
.decodeEncodedClientData
in interface ClientDataEncoder
clientData
- URLEncoded client dataIOException
- if the client data has been corrupted (verified via the HMAC)5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.