public final class WSS4JUtils extends Object
Modifier and Type | Method and Description |
---|---|
static SoapFault |
createSoapFault(SoapMessage message,
SoapVersion version,
org.apache.wss4j.common.ext.WSSecurityException e)
Create a SoapFault from a WSSecurityException, following the SOAP Message Security
1.1 specification, chapter 12 "Error Handling".
|
static org.apache.wss4j.common.crypto.Crypto |
getEncryptionCrypto(Object e,
SoapMessage message,
org.apache.wss4j.common.crypto.PasswordEncryptor passwordEncryptor) |
static org.apache.wss4j.common.crypto.PasswordEncryptor |
getPasswordEncryptor(Message message) |
static Properties |
getProps(Object o,
URL propsURL) |
static org.apache.wss4j.common.cache.ReplayCache |
getReplayCache(SoapMessage message,
String booleanKey,
String instanceKey)
Get a ReplayCache instance.
|
static X509Certificate |
getReqSigCert(List<org.apache.wss4j.dom.handler.WSHandlerResult> results)
Get the certificate that was used to sign the request
|
static long |
getSecurityTokenLifetime(Message message)
Get the security token lifetime value (in milliseconds).
|
static org.apache.wss4j.common.crypto.Crypto |
getSignatureCrypto(Object s,
SoapMessage message,
org.apache.wss4j.common.crypto.PasswordEncryptor passwordEncryptor) |
static org.apache.wss4j.common.crypto.Crypto |
loadCryptoFromPropertiesFile(Message message,
String propFilename,
ClassLoader classLoader,
org.apache.wss4j.common.crypto.PasswordEncryptor passwordEncryptor) |
static String |
parseAndStoreStreamingSecurityToken(org.apache.xml.security.stax.securityToken.SecurityToken securityToken,
Message message) |
public static long getSecurityTokenLifetime(Message message)
public static org.apache.wss4j.common.cache.ReplayCache getReplayCache(SoapMessage message, String booleanKey, String instanceKey)
public static String parseAndStoreStreamingSecurityToken(org.apache.xml.security.stax.securityToken.SecurityToken securityToken, Message message) throws org.apache.xml.security.exceptions.XMLSecurityException
org.apache.xml.security.exceptions.XMLSecurityException
public static SoapFault createSoapFault(SoapMessage message, SoapVersion version, org.apache.wss4j.common.ext.WSSecurityException e)
public static Properties getProps(Object o, URL propsURL)
public static org.apache.wss4j.common.crypto.PasswordEncryptor getPasswordEncryptor(Message message)
public static org.apache.wss4j.common.crypto.Crypto loadCryptoFromPropertiesFile(Message message, String propFilename, ClassLoader classLoader, org.apache.wss4j.common.crypto.PasswordEncryptor passwordEncryptor) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
public static org.apache.wss4j.common.crypto.Crypto getEncryptionCrypto(Object e, SoapMessage message, org.apache.wss4j.common.crypto.PasswordEncryptor passwordEncryptor) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
public static org.apache.wss4j.common.crypto.Crypto getSignatureCrypto(Object s, SoapMessage message, org.apache.wss4j.common.crypto.PasswordEncryptor passwordEncryptor) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
public static X509Certificate getReqSigCert(List<org.apache.wss4j.dom.handler.WSHandlerResult> results)
Apache CXF