public interface WSSecurityManager
Defines WS-Security parameters to the UltraESB configuration, and serves as the central point of control for securing and verifying of messages
See sample # 204
Modifier and Type | Method and Description |
---|---|
void |
addDigestUsernameTokenAuthentication(Message msg,
String username,
String password)
Add a WS-Security Username Token authentication element to the request, with a nonce, created and hashed password
|
void |
addDigestUsernameTokenAuthenticationWithTimestamp(Message msg,
String username,
String password)
Add a WS-Security Username Token authentication element and a Timestamp element to the request,
with a nonce, created and hashed password
|
void |
addPlainUsernameTokenAuthenticationWithTimestamp(Message msg,
String username,
String password)
Add a WS-Security Username Token authentication element and a Timestamp elemtn to the request,
with a nonce, created and hashed password
|
void |
addUsernameTokenAuthentication(Message msg,
String username,
String password,
boolean hashed,
boolean addNonceAndCreated,
boolean includeTimestamp)
Add a WS-Security Username Token authentication element to the request
|
void |
addUsernameTokenAuthentication(Message msg,
String username,
String password,
boolean hashed,
boolean addNonceAndCreated,
boolean includeTimestamp,
boolean mustUnderstand)
Add a WS-Security Username Token authentication element to the request
|
void |
removeSecurityHeader(Message msg)
Remove the WS-Security header from a message
|
void |
signMessage(Message msg,
String signAlias,
String signAlgo,
String digestAlgo)
Secure the message with signature
|
void |
timestampAndEncryptMessage(Message msg,
String encryptionAlias)
Secure message with a timestamp and encrypt - using default timestamp TTL of 5 minutes and key size of 256
|
void |
timestampAndEncryptMessage(Message msg,
String encryptionAlias,
long millis,
String algo)
Secure message with a timestamp and encrypt - using specified timestamp TTL
|
void |
timestampAndSignMessage(Message msg,
String signatureAlias)
Secure message with a timestamp and signature - using default timestamp TTL of 5 minutes
|
void |
timestampAndSignMessage(Message msg,
String signatureAlias,
long millis)
Secure message with a timestamp and signature - using specified timestamp TTL
|
void |
timestampMessage(Message msg)
Secure message with a timestamp - using default timestamp TTL of 5 minutes
|
void |
timestampMessage(Message msg,
long millis)
Secure message with a timestamp - using specified timestamp TTL
|
void |
timestampSignAndEncryptMessage(Message msg,
String encryptionAlias,
String signatureAlias)
Secure message with a timestamp, signature and encrypt body - using default timestamp TTL of 5 minutes and keysize of 256
|
void |
timestampSignAndEncryptMessage(Message msg,
String encryptionAlias,
String signatureAlias,
long millis,
String algo)
Secure message with a timestamp, signature and encrypt body - using specified timestamp TTL
|
void |
verifySignedMessage(Message msg,
boolean remove)
Verify that the message is valid using public key certificates
|
void |
verifyTimestampedAndEncryptedMessage(Message msg,
boolean remove)
Verify that the message is timestamped and encrypted
|
void |
verifyTimestampedAndSignedMessage(Message msg,
boolean remove)
Verify that the message is timestamped and signed
|
void |
verifyTimestampedEncryptedAndSignedMessage(Message msg,
boolean remove)
Verify that the message is timestamped, encrypted and signed
|
void |
verifyTimestampedMessage(Message msg,
boolean remove)
Verify that the message is timestamped and the timestamp valid
|
void |
verifyUsernameTokenAuthentication(Message msg)
Verify that the message contains UsernameToken authentication information, and that its valid
|
void |
verifyUsernameTokenAuthentication(Message msg,
boolean remove)
Verify that the message contains UsernameToken authentication information, and that its valid
|
void removeSecurityHeader(Message msg)
msg
- the message from which the WS-Security header should be removedvoid timestampMessage(Message msg, long millis)
msg
- message to timestampmillis
- timestamp TTLvoid timestampMessage(Message msg)
msg
- message to timestampvoid timestampAndSignMessage(Message msg, String signatureAlias, long millis)
msg
- message to securesignatureAlias
- alias of credentials for signaturemillis
- timestamp TTLvoid signMessage(Message msg, String signAlias, String signAlgo, String digestAlgo)
msg
- message to securesignAlias
- alias of credentials for signaturesignAlgo
- signing algorithm to be useddigestAlgo
- digest algorithm to be used to generate the hashvoid timestampAndSignMessage(Message msg, String signatureAlias)
msg
- message to securesignatureAlias
- alias of credentials for signaturevoid timestampAndEncryptMessage(Message msg, String encryptionAlias, long millis, String algo)
msg
- message to secureencryptionAlias
- alias of credentials for encryptionalgo
- encryption algorithm URI or prefixvoid timestampAndEncryptMessage(Message msg, String encryptionAlias)
msg
- message to secureencryptionAlias
- alias of credentials for encryptionvoid timestampSignAndEncryptMessage(Message msg, String encryptionAlias, String signatureAlias, long millis, String algo)
msg
- message to secureencryptionAlias
- alias of credentials for encryptionsignatureAlias
- alias of credentials for signaturemillis
- timestamp TTLalgo
- encryption algorithmvoid timestampSignAndEncryptMessage(Message msg, String encryptionAlias, String signatureAlias)
msg
- message to secureencryptionAlias
- alias of credentials for encryptionsignatureAlias
- alias of credentials for signaturevoid addUsernameTokenAuthentication(Message msg, String username, String password, boolean hashed, boolean addNonceAndCreated, boolean includeTimestamp)
msg
- message to secureusername
- username to addpassword
- password to addhashed
- true if password is a digestaddNonceAndCreated
- true if a nonce and digest should be added (true of hashed)includeTimestamp
- should a Timestamp element be included?void addUsernameTokenAuthentication(Message msg, String username, String password, boolean hashed, boolean addNonceAndCreated, boolean includeTimestamp, boolean mustUnderstand)
msg
- message to secureusername
- username to addpassword
- password to addhashed
- true if password is a digestaddNonceAndCreated
- true if a nonce and digest should be added (true of hashed)includeTimestamp
- should a Timestamp element be included?mustUnderstand
- decides the must-understand flag of the security headervoid addDigestUsernameTokenAuthentication(Message msg, String username, String password)
msg
- message to secureusername
- username to addpassword
- password to addvoid addDigestUsernameTokenAuthenticationWithTimestamp(Message msg, String username, String password)
msg
- message to secureusername
- username to addpassword
- password to addvoid addPlainUsernameTokenAuthenticationWithTimestamp(Message msg, String username, String password)
msg
- message to secureusername
- username to addpassword
- password to addvoid verifyTimestampedMessage(Message msg, boolean remove)
msg
- message to validateremove
- remove security header after processingvoid verifySignedMessage(Message msg, boolean remove)
msg
- message to validateremove
- remove security header after processingvoid verifyTimestampedAndSignedMessage(Message msg, boolean remove)
msg
- message to validateremove
- remove security header after processingvoid verifyTimestampedAndEncryptedMessage(Message msg, boolean remove)
msg
- message to validateremove
- remove security header after processingvoid verifyTimestampedEncryptedAndSignedMessage(Message msg, boolean remove)
msg
- message to validateremove
- remove security header after processingvoid verifyUsernameTokenAuthentication(Message msg, boolean remove)
msg
- message to validateremove
- remove security header after processingvoid verifyUsernameTokenAuthentication(Message msg)
msg
- message to validateCopyright © 2010–2016 AdroitLogic. All rights reserved.