public class WSSec extends Object
Constructor and Description |
---|
WSSec() |
Modifier and Type | Method and Description |
---|---|
static InboundWSSec |
getInboundWSSec(WSSSecurityProperties securityProperties)
Creates and configures an inbound streaming security engine
|
static InboundWSSec |
getInboundWSSec(WSSSecurityProperties securityProperties,
boolean initiator)
Creates and configures an inbound streaming security engine
|
static InboundWSSec |
getInboundWSSec(WSSSecurityProperties securityProperties,
boolean initiator,
boolean returnSecurityError)
Creates and configures an inbound streaming security engine
|
static OutboundWSSec |
getOutboundWSSec(WSSSecurityProperties securityProperties)
Creates and configures an outbound streaming security engine
|
static void |
init() |
static Schema |
loadWSSecuritySchemas() |
static WSSSecurityProperties |
validateAndApplyDefaultsToInboundSecurityProperties(WSSSecurityProperties securityProperties)
Validates the user supplied configuration and applies default values as apropriate for the inbound security engine
|
static WSSSecurityProperties |
validateAndApplyDefaultsToOutboundSecurityProperties(WSSSecurityProperties securityProperties)
Validates the user supplied configuration and applies default values as apropriate for the outbound security engine
|
public static void init()
public static OutboundWSSec getOutboundWSSec(WSSSecurityProperties securityProperties) throws WSSecurityException
securityProperties
- The user-defined security configurationWSSecurityException
- if the initialisation failedWSSConfigurationException
- if the configuration is invalidpublic static InboundWSSec getInboundWSSec(WSSSecurityProperties securityProperties) throws WSSecurityException
securityProperties
- The user-defined security configurationWSSecurityException
- if the initialisation failedWSSConfigurationException
- if the configuration is invalidpublic static InboundWSSec getInboundWSSec(WSSSecurityProperties securityProperties, boolean initiator) throws WSSecurityException
securityProperties
- The user-defined security configurationinitiator
- Whether we are the message initiator or notWSSecurityException
- if the initialisation failedWSSConfigurationException
- if the configuration is invalidpublic static InboundWSSec getInboundWSSec(WSSSecurityProperties securityProperties, boolean initiator, boolean returnSecurityError) throws WSSecurityException
securityProperties
- The user-defined security configurationinitiator
- Whether we are the message initiator or notreturnSecurityError
- Whether to return the underlying security error or notWSSecurityException
- if the initialisation failedWSSConfigurationException
- if the configuration is invalidpublic static WSSSecurityProperties validateAndApplyDefaultsToOutboundSecurityProperties(WSSSecurityProperties securityProperties) throws WSSConfigurationException
securityProperties
- The configuration to validateWSSConfigurationException
- if the configuration is invalidpublic static WSSSecurityProperties validateAndApplyDefaultsToInboundSecurityProperties(WSSSecurityProperties securityProperties) throws WSSConfigurationException
securityProperties
- The configuration to validateWSSConfigurationException
- if the configuration is invalidpublic static Schema loadWSSecuritySchemas() throws SAXException
SAXException
Copyright © 2019 JBoss by Red Hat. All rights reserved.