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