public class WSSUtils
extends org.apache.xml.security.stax.ext.XMLSecurityUtils
| Modifier | Constructor and Description |
|---|---|
protected |
WSSUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createBinarySecurityTokenStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
String referenceId,
X509Certificate[] x509Certificates,
boolean useSingleCertificate) |
static void |
createBSTReferenceStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
String referenceId,
String valueType,
boolean includedInMessage) |
static void |
createEmbeddedKeyIdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType tokenType,
String referenceId) |
static void |
createEncryptedDataStructureForAttachments(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain) |
static void |
createEncryptedKeySha1IdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
Key key) |
static void |
createEncryptedKeySha1IdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
String identifier) |
static void |
createKerberosSha1IdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
String identifier) |
static void |
createReferenceListStructureForEncryption(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain) |
static void |
createSAMLKeyIdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType tokenType,
String referenceId) |
static void |
createThumbprintKeyIdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates) |
static org.apache.xml.security.stax.securityEvent.TokenSecurityEvent<? extends org.apache.xml.security.stax.securityToken.InboundSecurityToken> |
createTokenSecurityEvent(org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken,
String correlationID) |
static void |
createUsernameTokenReferenceStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
String tokenId) |
static void |
createX509KeyIdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates) |
static void |
createX509SubjectKeyIdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates) |
static void |
doPasswordCallback(CallbackHandler callbackHandler,
Callback callback)
Executes the Callback handling.
|
static String |
doPasswordDigest(byte[] nonce,
String created,
String password) |
static void |
doSecretKeyCallback(CallbackHandler callbackHandler,
Callback callback,
String id)
Try to get the secret key from a CallbackHandler implementation
|
static <T extends org.apache.xml.security.stax.securityToken.SecurityToken> |
getRootToken(T securityToken) |
static String |
getSOAPMessageVersionNamespace(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent) |
static boolean |
isInSecurityHeader(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent,
List<QName> elementPath,
String actorOrRole) |
static boolean |
isInSecurityHeader(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent,
String actorOrRole) |
static boolean |
isInSOAPBody(List<QName> elementPath) |
static boolean |
isInSOAPBody(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent) |
static boolean |
isInSOAPHeader(List<QName> elementPath) |
static boolean |
isInSOAPHeader(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent) |
static boolean |
isResponsibleActorOrRole(org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement,
String responsibleActor) |
static boolean |
isSecurityHeaderElement(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent,
String actorOrRole) |
static String |
pathAsString(List<QName> path) |
static boolean |
pathMatches(List<QName> path1,
List<QName> path2,
boolean matchAnySoapNS,
boolean lastElementWildCard) |
copy, createKeyNameTokenStructure, createKeyValueTokenStructure, createKeyValueTokenStructure, createX509CertificateStructure, createX509IssuerSerialStructure, createX509SubjectNameStructure, dropReferenceMarker, getExcC14NInclusiveNamespacePrefixes, getQNameAttribute, getQNameType, getTransformer, getType, getXMLEventAsString, loadXMLSecuritySchemas, prepareSecretKeypublic static void doPasswordCallback(CallbackHandler callbackHandler, Callback callback) throws WSSecurityException
callbackHandler - callback - WSSecurityException - if the callback couldn't be executedpublic static void doSecretKeyCallback(CallbackHandler callbackHandler, Callback callback, String id) throws WSSecurityException
callbackHandler - a CallbackHandler implementationWSSecurityExceptionpublic static String doPasswordDigest(byte[] nonce, String created, String password) throws WSSecurityException
WSSecurityExceptionpublic static String getSOAPMessageVersionNamespace(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent)
public static boolean isInSOAPHeader(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent)
public static boolean isInSOAPBody(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent)
public static boolean isInSecurityHeader(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent,
String actorOrRole)
public static boolean isInSecurityHeader(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent,
List<QName> elementPath,
String actorOrRole)
public static boolean isSecurityHeaderElement(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent,
String actorOrRole)
public static boolean isResponsibleActorOrRole(org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement,
String responsibleActor)
public static void createBinarySecurityTokenStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
String referenceId,
X509Certificate[] x509Certificates,
boolean useSingleCertificate)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static void createX509SubjectKeyIdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates)
throws org.apache.xml.security.exceptions.XMLSecurityException,
XMLStreamException
org.apache.xml.security.exceptions.XMLSecurityExceptionXMLStreamExceptionpublic static void createX509KeyIdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static void createThumbprintKeyIdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static void createEncryptedKeySha1IdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
Key key)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static void createEncryptedKeySha1IdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
String identifier)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static void createKerberosSha1IdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
String identifier)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static void createBSTReferenceStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
String referenceId,
String valueType,
boolean includedInMessage)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static void createEmbeddedKeyIdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType tokenType,
String referenceId)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static void createSAMLKeyIdentifierStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType tokenType,
String referenceId)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static void createUsernameTokenReferenceStructure(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain,
String tokenId)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static void createReferenceListStructureForEncryption(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static void createEncryptedDataStructureForAttachments(org.apache.xml.security.stax.ext.AbstractOutputProcessor abstractOutputProcessor,
org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)
throws XMLStreamException,
org.apache.xml.security.exceptions.XMLSecurityException
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityExceptionpublic static org.apache.xml.security.stax.securityEvent.TokenSecurityEvent<? extends org.apache.xml.security.stax.securityToken.InboundSecurityToken> createTokenSecurityEvent(org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken,
String correlationID)
throws WSSecurityException
WSSecurityExceptionpublic static boolean pathMatches(List<QName> path1, List<QName> path2, boolean matchAnySoapNS, boolean lastElementWildCard)
public static <T extends org.apache.xml.security.stax.securityToken.SecurityToken> T getRootToken(T securityToken)
throws org.apache.xml.security.exceptions.XMLSecurityException
org.apache.xml.security.exceptions.XMLSecurityExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.