com.baidubce.services.iothisk.model
Class CipherRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.iothisk.model.CipherRequest

public class CipherRequest
extends AbstractBceRequest

Represent the request for message encryption/decryption.


Constructor Summary
CipherRequest()
           
 
Method Summary
 EncodeType getCipherEncodeType()
          Get the cipher message encoding type.
 String getData()
          Get the message data requiring for encryption / decryption.
 EncodeType getType()
          Get the message encoding type.
 void setCipherEncodeType(EncodeType encodeType)
          Set the cipher message encoding type.
 void setData(String data)
          Set the message data requiring for encryption / decryption.
 void setType(EncodeType encodeType)
          Set the message encoding type.
 AbstractBceRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential for the request.
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CipherRequest

public CipherRequest()
Method Detail

getData

public String getData()
Get the message data requiring for encryption / decryption.

Returns:
message data requiring for encryption / decryption

setData

public void setData(String data)
Set the message data requiring for encryption / decryption.

Parameters:
data - message data requiring for encryption / decryption

getType

public EncodeType getType()
Get the message encoding type.

Returns:
message encoding type

setType

public void setType(EncodeType encodeType)
Set the message encoding type.

Parameters:
encodeType - message encoding type

getCipherEncodeType

public EncodeType getCipherEncodeType()
Get the cipher message encoding type.

Returns:
cipher message encoding type

setCipherEncodeType

public void setCipherEncodeType(EncodeType encodeType)
Set the cipher message encoding type.

Parameters:
encodeType - cipher message encoding type

withRequestCredentials

public AbstractBceRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.

Specified by:
withRequestCredentials in class AbstractBceRequest
Parameters:
credentials - a valid instance of BceCredentials.
Returns:
CipherRequest with credentials.


Copyright © 2018. All rights reserved.