public class XMLSecurityUtils extends Object
Modifier | Constructor and Description |
---|---|
protected |
XMLSecurityUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(InputStream inputStream,
OutputStream outputStream) |
static void |
createKeyNameTokenStructure(AbstractOutputProcessor abstractOutputProcessor,
OutputProcessorChain outputProcessorChain,
String keyName) |
static void |
createKeyValueTokenStructure(AbstractOutputProcessor abstractOutputProcessor,
OutputProcessorChain outputProcessorChain,
PublicKey publicKey) |
static void |
createKeyValueTokenStructure(AbstractOutputProcessor abstractOutputProcessor,
OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates) |
static TokenSecurityEvent<? extends InboundSecurityToken> |
createTokenSecurityEvent(InboundSecurityToken inboundSecurityToken,
String correlationID) |
static void |
createX509CertificateStructure(AbstractOutputProcessor abstractOutputProcessor,
OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates) |
static void |
createX509CertificateStructure(AbstractOutputProcessor abstractOutputProcessor,
OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates,
boolean outputX509Data) |
static void |
createX509IssuerSerialStructure(AbstractOutputProcessor abstractOutputProcessor,
OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates) |
static void |
createX509IssuerSerialStructure(AbstractOutputProcessor abstractOutputProcessor,
OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates,
boolean outputX509Data) |
static void |
createX509SubjectKeyIdentifierStructure(AbstractOutputProcessor abstractOutputProcessor,
OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates) |
static void |
createX509SubjectKeyIdentifierStructure(AbstractOutputProcessor abstractOutputProcessor,
OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates,
boolean outputX509Data) |
static void |
createX509SubjectNameStructure(AbstractOutputProcessor abstractOutputProcessor,
OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates) |
static void |
createX509SubjectNameStructure(AbstractOutputProcessor abstractOutputProcessor,
OutputProcessorChain outputProcessorChain,
X509Certificate[] x509Certificates,
boolean outputX509Data) |
static String |
dropReferenceMarker(String reference)
Returns the Id reference without the leading #
|
static Set<String> |
getExcC14NInclusiveNamespacePrefixes(XMLSecStartElement xmlSecStartElement,
boolean excludeVisible) |
static String |
getQNameAttribute(Map<QName,String> attributes,
QName qName) |
static <T> T |
getQNameType(List<Object> objects,
QName qName) |
static Transformer |
getTransformer(Transformer transformer,
OutputStream outputStream,
Map<String,Object> properties,
String algorithm,
XMLSecurityConstants.DIRECTION direction) |
static String |
getXMLEventAsString(XMLSecEvent xmlSecEvent)
Returns the XMLEvent type in String form
|
static Schema |
loadXMLSecuritySchemas() |
static SecretKey |
prepareSecretKey(String symEncAlgo,
byte[] rawKey)
Convert the raw key bytes into a SecretKey object of type symEncAlgo.
|
public static String dropReferenceMarker(String reference)
reference
- The reference on which to drop the #public static String getXMLEventAsString(XMLSecEvent xmlSecEvent)
xmlSecEvent
- public static Transformer getTransformer(Transformer transformer, OutputStream outputStream, Map<String,Object> properties, String algorithm, XMLSecurityConstants.DIRECTION direction) throws XMLSecurityException
XMLSecurityException
public static void createKeyValueTokenStructure(AbstractOutputProcessor abstractOutputProcessor, OutputProcessorChain outputProcessorChain, X509Certificate[] x509Certificates) throws XMLStreamException, XMLSecurityException
public static void createKeyValueTokenStructure(AbstractOutputProcessor abstractOutputProcessor, OutputProcessorChain outputProcessorChain, PublicKey publicKey) throws XMLStreamException, XMLSecurityException
public static void createX509SubjectKeyIdentifierStructure(AbstractOutputProcessor abstractOutputProcessor, OutputProcessorChain outputProcessorChain, X509Certificate[] x509Certificates) throws XMLSecurityException, XMLStreamException
public static void createX509SubjectKeyIdentifierStructure(AbstractOutputProcessor abstractOutputProcessor, OutputProcessorChain outputProcessorChain, X509Certificate[] x509Certificates, boolean outputX509Data) throws XMLSecurityException, XMLStreamException
public static void createX509CertificateStructure(AbstractOutputProcessor abstractOutputProcessor, OutputProcessorChain outputProcessorChain, X509Certificate[] x509Certificates) throws XMLSecurityException, XMLStreamException
public static void createX509CertificateStructure(AbstractOutputProcessor abstractOutputProcessor, OutputProcessorChain outputProcessorChain, X509Certificate[] x509Certificates, boolean outputX509Data) throws XMLSecurityException, XMLStreamException
public static void createX509SubjectNameStructure(AbstractOutputProcessor abstractOutputProcessor, OutputProcessorChain outputProcessorChain, X509Certificate[] x509Certificates) throws XMLSecurityException, XMLStreamException
public static void createX509SubjectNameStructure(AbstractOutputProcessor abstractOutputProcessor, OutputProcessorChain outputProcessorChain, X509Certificate[] x509Certificates, boolean outputX509Data) throws XMLSecurityException, XMLStreamException
public static void createX509IssuerSerialStructure(AbstractOutputProcessor abstractOutputProcessor, OutputProcessorChain outputProcessorChain, X509Certificate[] x509Certificates) throws XMLStreamException, XMLSecurityException
public static void createX509IssuerSerialStructure(AbstractOutputProcessor abstractOutputProcessor, OutputProcessorChain outputProcessorChain, X509Certificate[] x509Certificates, boolean outputX509Data) throws XMLStreamException, XMLSecurityException
public static TokenSecurityEvent<? extends InboundSecurityToken> createTokenSecurityEvent(InboundSecurityToken inboundSecurityToken, String correlationID) throws XMLSecurityException
XMLSecurityException
public static Set<String> getExcC14NInclusiveNamespacePrefixes(XMLSecStartElement xmlSecStartElement, boolean excludeVisible)
public static void copy(InputStream inputStream, OutputStream outputStream) throws IOException
IOException
public static SecretKey prepareSecretKey(String symEncAlgo, byte[] rawKey)
public static Schema loadXMLSecuritySchemas() throws SAXException
SAXException
public static void createKeyNameTokenStructure(AbstractOutputProcessor abstractOutputProcessor, OutputProcessorChain outputProcessorChain, String keyName) throws XMLStreamException, XMLSecurityException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.