Interface EncryptInterceptorMBean
- All Known Implementing Classes:
EncryptInterceptor
public interface EncryptInterceptorMBean
MBean interface for managing the
EncryptInterceptor configuration and status.-
Method Summary
Modifier and TypeMethodDescriptionReturns the encryption algorithm currently in use.byte[]Returns the encryption key as raw bytes.intReturns the option flag for the encryption interceptor.Returns the JCA provider name for cryptographic operations.intReturns the maximum number of replay cache entries.longReturns the time-based replay window in milliseconds.voidsetEncryptionAlgorithm(String algorithm) Sets the encryption algorithm to use.voidsetEncryptionKey(byte[] key) Sets the encryption key as raw bytes.voidsetOptionFlag(int optionFlag) Sets the option flag for the encryption interceptor.voidsetProviderName(String provider) Sets the JCA provider name for cryptographic operations.voidsetReplayWindowMessageCount(int replayWindowMessageCount) Sets the maximum number of replay cache entries.voidsetReplayWindowTime(long replayWindowTime) Sets the time-based replay window in milliseconds.
-
Method Details
-
getOptionFlag
int getOptionFlag()Returns the option flag for the encryption interceptor.- Returns:
- the option flag value
-
setOptionFlag
void setOptionFlag(int optionFlag) Sets the option flag for the encryption interceptor.- Parameters:
optionFlag- the option flag value
-
setEncryptionAlgorithm
Sets the encryption algorithm to use.- Parameters:
algorithm- the encryption algorithm in algorithm/mode/padding format
-
getEncryptionAlgorithm
String getEncryptionAlgorithm()Returns the encryption algorithm currently in use.- Returns:
- the encryption algorithm string
-
setEncryptionKey
void setEncryptionKey(byte[] key) Sets the encryption key as raw bytes.- Parameters:
key- the encryption key bytes
-
getEncryptionKey
byte[] getEncryptionKey()Returns the encryption key as raw bytes.- Returns:
- the encryption key bytes
-
setProviderName
Sets the JCA provider name for cryptographic operations.- Parameters:
provider- the JCA provider name
-
getProviderName
String getProviderName()Returns the JCA provider name for cryptographic operations.- Returns:
- the JCA provider name, or
nullfor default
-
setReplayWindowTime
void setReplayWindowTime(long replayWindowTime) Sets the time-based replay window in milliseconds.- Parameters:
replayWindowTime- the replay window time
-
getReplayWindowTime
long getReplayWindowTime()Returns the time-based replay window in milliseconds.- Returns:
- the replay window time
-
setReplayWindowMessageCount
void setReplayWindowMessageCount(int replayWindowMessageCount) Sets the maximum number of replay cache entries.- Parameters:
replayWindowMessageCount- the replay window message count
-
getReplayWindowMessageCount
int getReplayWindowMessageCount()Returns the maximum number of replay cache entries.- Returns:
- the replay window message count
-