Package org.apache.xml.security.stax.ext
Class XMLSecurityConstants
- java.lang.Object
-
- org.apache.xml.security.stax.ext.XMLSecurityConstants
-
public class XMLSecurityConstants extends Object
XMLSecurityConstants for global use- Version:
- $Revision: 1720201 $ $Date: 2015-12-15 18:13:17 +0100 (Tue, 15 Dec 2015) $
- Author:
- $Author: coheigea $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XMLSecurityConstants.Action
static class
XMLSecurityConstants.AlgorithmUsage
static class
XMLSecurityConstants.ContentType
static class
XMLSecurityConstants.DIRECTION
static class
XMLSecurityConstants.Phase
static class
XMLSecurityConstants.TransformMethod
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
XMLSecurityConstants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
generateBytes(int length)
Generate bytes of the given length using the SHA1PRNG algorithm.static Schema
getJaxbSchemas()
static Unmarshaller
getJaxbUnmarshaller(boolean disableSchemaValidation)
static void
setJaxbContext(JAXBContext jaxbContext)
static void
setJaxbSchemas(Schema schema)
-
-
-
Field Detail
-
datatypeFactory
public static final DatatypeFactory datatypeFactory
-
xmlOutputFactory
public static final XMLOutputFactory xmlOutputFactory
-
xmlOutputFactoryNonRepairingNs
public static final XMLOutputFactory xmlOutputFactoryNonRepairingNs
-
XMLINPUTFACTORY
public static final String XMLINPUTFACTORY
- See Also:
- Constant Field Values
-
NS_XML
public static final String NS_XML
- See Also:
- Constant Field Values
-
NS_XMLENC
public static final String NS_XMLENC
- See Also:
- Constant Field Values
-
NS_XMLENC11
public static final String NS_XMLENC11
- See Also:
- Constant Field Values
-
NS_DSIG
public static final String NS_DSIG
- See Also:
- Constant Field Values
-
NS_DSIG_MORE
public static final String NS_DSIG_MORE
- See Also:
- Constant Field Values
-
NS_DSIG11
public static final String NS_DSIG11
- See Also:
- Constant Field Values
-
NS_WSSE11
public static final String NS_WSSE11
- See Also:
- Constant Field Values
-
PREFIX_XENC
public static final String PREFIX_XENC
- See Also:
- Constant Field Values
-
PREFIX_XENC11
public static final String PREFIX_XENC11
- See Also:
- Constant Field Values
-
TAG_xenc_EncryptedKey
public static final QName TAG_xenc_EncryptedKey
-
ATT_NULL_Id
public static final QName ATT_NULL_Id
-
ATT_NULL_Type
public static final QName ATT_NULL_Type
-
ATT_NULL_MimeType
public static final QName ATT_NULL_MimeType
-
ATT_NULL_Encoding
public static final QName ATT_NULL_Encoding
-
TAG_xenc_EncryptionMethod
public static final QName TAG_xenc_EncryptionMethod
-
ATT_NULL_Algorithm
public static final QName ATT_NULL_Algorithm
-
TAG_xenc_OAEPparams
public static final QName TAG_xenc_OAEPparams
-
TAG_xenc11_MGF
public static final QName TAG_xenc11_MGF
-
PREFIX_DSIG
public static final String PREFIX_DSIG
- See Also:
- Constant Field Values
-
TAG_dsig_KeyInfo
public static final QName TAG_dsig_KeyInfo
-
TAG_xenc_EncryptionProperties
public static final QName TAG_xenc_EncryptionProperties
-
TAG_xenc_CipherData
public static final QName TAG_xenc_CipherData
-
TAG_xenc_CipherValue
public static final QName TAG_xenc_CipherValue
-
TAG_xenc_CipherReference
public static final QName TAG_xenc_CipherReference
-
TAG_xenc_ReferenceList
public static final QName TAG_xenc_ReferenceList
-
TAG_xenc_DataReference
public static final QName TAG_xenc_DataReference
-
ATT_NULL_URI
public static final QName ATT_NULL_URI
-
TAG_xenc_EncryptedData
public static final QName TAG_xenc_EncryptedData
-
TAG_xenc_Transforms
public static final QName TAG_xenc_Transforms
-
PREFIX_WSSE11
public static final String PREFIX_WSSE11
- See Also:
- Constant Field Values
-
TAG_wsse11_EncryptedHeader
public static final QName TAG_wsse11_EncryptedHeader
-
TAG_dsig_Signature
public static final QName TAG_dsig_Signature
-
TAG_dsig_SignedInfo
public static final QName TAG_dsig_SignedInfo
-
TAG_dsig_CanonicalizationMethod
public static final QName TAG_dsig_CanonicalizationMethod
-
TAG_dsig_SignatureMethod
public static final QName TAG_dsig_SignatureMethod
-
TAG_dsig_HMACOutputLength
public static final QName TAG_dsig_HMACOutputLength
-
TAG_dsig_Reference
public static final QName TAG_dsig_Reference
-
TAG_dsig_Transforms
public static final QName TAG_dsig_Transforms
-
TAG_dsig_Transform
public static final QName TAG_dsig_Transform
-
TAG_dsig_DigestMethod
public static final QName TAG_dsig_DigestMethod
-
TAG_dsig_DigestValue
public static final QName TAG_dsig_DigestValue
-
TAG_dsig_SignatureValue
public static final QName TAG_dsig_SignatureValue
-
TAG_dsig_Manifest
public static final QName TAG_dsig_Manifest
-
TAG_dsig_X509Data
public static final QName TAG_dsig_X509Data
-
TAG_dsig_X509IssuerSerial
public static final QName TAG_dsig_X509IssuerSerial
-
TAG_dsig_X509IssuerName
public static final QName TAG_dsig_X509IssuerName
-
TAG_dsig_X509SerialNumber
public static final QName TAG_dsig_X509SerialNumber
-
TAG_dsig_X509SKI
public static final QName TAG_dsig_X509SKI
-
TAG_dsig_X509Certificate
public static final QName TAG_dsig_X509Certificate
-
TAG_dsig_X509SubjectName
public static final QName TAG_dsig_X509SubjectName
-
TAG_dsig_KeyName
public static final QName TAG_dsig_KeyName
-
TAG_dsig_KeyValue
public static final QName TAG_dsig_KeyValue
-
TAG_dsig_RSAKeyValue
public static final QName TAG_dsig_RSAKeyValue
-
TAG_dsig_Modulus
public static final QName TAG_dsig_Modulus
-
TAG_dsig_Exponent
public static final QName TAG_dsig_Exponent
-
TAG_dsig_DSAKeyValue
public static final QName TAG_dsig_DSAKeyValue
-
TAG_dsig_P
public static final QName TAG_dsig_P
-
TAG_dsig_Q
public static final QName TAG_dsig_Q
-
TAG_dsig_G
public static final QName TAG_dsig_G
-
TAG_dsig_Y
public static final QName TAG_dsig_Y
-
TAG_dsig_J
public static final QName TAG_dsig_J
-
TAG_dsig_Seed
public static final QName TAG_dsig_Seed
-
TAG_dsig_PgenCounter
public static final QName TAG_dsig_PgenCounter
-
PREFIX_DSIG11
public static final String PREFIX_DSIG11
- See Also:
- Constant Field Values
-
TAG_dsig11_ECKeyValue
public static final QName TAG_dsig11_ECKeyValue
-
TAG_dsig11_ECParameters
public static final QName TAG_dsig11_ECParameters
-
TAG_dsig11_NamedCurve
public static final QName TAG_dsig11_NamedCurve
-
TAG_dsig11_PublicKey
public static final QName TAG_dsig11_PublicKey
-
NS_C14N_EXCL
public static final String NS_C14N_EXCL
- See Also:
- Constant Field Values
-
NS_XMLDSIG_FILTER2
public static final String NS_XMLDSIG_FILTER2
- See Also:
- Constant Field Values
-
NS_XMLDSIG_ENVELOPED_SIGNATURE
public static final String NS_XMLDSIG_ENVELOPED_SIGNATURE
- See Also:
- Constant Field Values
-
NS_XMLDSIG_SHA1
public static final String NS_XMLDSIG_SHA1
- See Also:
- Constant Field Values
-
NS_XMLDSIG_HMACSHA1
public static final String NS_XMLDSIG_HMACSHA1
- See Also:
- Constant Field Values
-
NS_XMLDSIG_RSASHA1
public static final String NS_XMLDSIG_RSASHA1
- See Also:
- Constant Field Values
-
NS_XMLDSIG_MANIFEST
public static final String NS_XMLDSIG_MANIFEST
- See Also:
- Constant Field Values
-
NS_XMLDSIG_HMACSHA256
public static final String NS_XMLDSIG_HMACSHA256
- See Also:
- Constant Field Values
-
NS_XMLDSIG_HMACSHA384
public static final String NS_XMLDSIG_HMACSHA384
- See Also:
- Constant Field Values
-
NS_XMLDSIG_HMACSHA512
public static final String NS_XMLDSIG_HMACSHA512
- See Also:
- Constant Field Values
-
NS_XMLDSIG_RSASHA256
public static final String NS_XMLDSIG_RSASHA256
- See Also:
- Constant Field Values
-
NS_XMLDSIG_RSASHA384
public static final String NS_XMLDSIG_RSASHA384
- See Also:
- Constant Field Values
-
NS_XMLDSIG_RSASHA512
public static final String NS_XMLDSIG_RSASHA512
- See Also:
- Constant Field Values
-
NS_XENC_TRIPLE_DES
public static final String NS_XENC_TRIPLE_DES
- See Also:
- Constant Field Values
-
NS_XENC_AES128
public static final String NS_XENC_AES128
- See Also:
- Constant Field Values
-
NS_XENC11_AES128_GCM
public static final String NS_XENC11_AES128_GCM
- See Also:
- Constant Field Values
-
NS_XENC_AES192
public static final String NS_XENC_AES192
- See Also:
- Constant Field Values
-
NS_XENC11_AES192_GCM
public static final String NS_XENC11_AES192_GCM
- See Also:
- Constant Field Values
-
NS_XENC_AES256
public static final String NS_XENC_AES256
- See Also:
- Constant Field Values
-
NS_XENC11_AES256_GCM
public static final String NS_XENC11_AES256_GCM
- See Also:
- Constant Field Values
-
NS_XENC_RSA15
public static final String NS_XENC_RSA15
- See Also:
- Constant Field Values
-
NS_XENC_RSAOAEPMGF1P
public static final String NS_XENC_RSAOAEPMGF1P
- See Also:
- Constant Field Values
-
NS_XENC11_RSAOAEP
public static final String NS_XENC11_RSAOAEP
- See Also:
- Constant Field Values
-
NS_MGF1_SHA1
public static final String NS_MGF1_SHA1
- See Also:
- Constant Field Values
-
NS_MGF1_SHA224
public static final String NS_MGF1_SHA224
- See Also:
- Constant Field Values
-
NS_MGF1_SHA256
public static final String NS_MGF1_SHA256
- See Also:
- Constant Field Values
-
NS_MGF1_SHA384
public static final String NS_MGF1_SHA384
- See Also:
- Constant Field Values
-
NS_MGF1_SHA512
public static final String NS_MGF1_SHA512
- See Also:
- Constant Field Values
-
NS_XENC_SHA256
public static final String NS_XENC_SHA256
- See Also:
- Constant Field Values
-
NS_XENC_SHA512
public static final String NS_XENC_SHA512
- See Also:
- Constant Field Values
-
PREFIX_C14N_EXCL
public static final String PREFIX_C14N_EXCL
- See Also:
- Constant Field Values
-
ATT_NULL_PrefixList
public static final QName ATT_NULL_PrefixList
-
TAG_c14nExcl_InclusiveNamespaces
public static final QName TAG_c14nExcl_InclusiveNamespaces
-
NS_C14N_OMIT_COMMENTS
public static final String NS_C14N_OMIT_COMMENTS
- See Also:
- Constant Field Values
-
NS_C14N_WITH_COMMENTS
public static final String NS_C14N_WITH_COMMENTS
- See Also:
- Constant Field Values
-
NS_C14N_EXCL_OMIT_COMMENTS
public static final String NS_C14N_EXCL_OMIT_COMMENTS
- See Also:
- Constant Field Values
-
NS_C14N_EXCL_WITH_COMMENTS
public static final String NS_C14N_EXCL_WITH_COMMENTS
- See Also:
- Constant Field Values
-
NS_C14N11_OMIT_COMMENTS
public static final String NS_C14N11_OMIT_COMMENTS
- See Also:
- Constant Field Values
-
NS_C14N11_WITH_COMMENTS
public static final String NS_C14N11_WITH_COMMENTS
- See Also:
- Constant Field Values
-
PROP_USE_THIS_TOKEN_ID_FOR_SIGNATURE
public static final String PROP_USE_THIS_TOKEN_ID_FOR_SIGNATURE
- See Also:
- Constant Field Values
-
PROP_USE_THIS_TOKEN_ID_FOR_ENCRYPTION
public static final String PROP_USE_THIS_TOKEN_ID_FOR_ENCRYPTION
- See Also:
- Constant Field Values
-
PROP_USE_THIS_TOKEN_ID_FOR_ENCRYPTED_KEY
public static final String PROP_USE_THIS_TOKEN_ID_FOR_ENCRYPTED_KEY
- See Also:
- Constant Field Values
-
SIGNATURE_PARTS
public static final String SIGNATURE_PARTS
- See Also:
- Constant Field Values
-
ENCRYPTION_PARTS
public static final String ENCRYPTION_PARTS
- See Also:
- Constant Field Values
-
SIGNATURE
public static final XMLSecurityConstants.Action SIGNATURE
-
ENCRYPT
public static final XMLSecurityConstants.Action ENCRYPT
-
Sym_Key_Wrap
public static final XMLSecurityConstants.AlgorithmUsage Sym_Key_Wrap
-
Asym_Key_Wrap
public static final XMLSecurityConstants.AlgorithmUsage Asym_Key_Wrap
-
Sym_Sig
public static final XMLSecurityConstants.AlgorithmUsage Sym_Sig
-
Asym_Sig
public static final XMLSecurityConstants.AlgorithmUsage Asym_Sig
-
Enc
public static final XMLSecurityConstants.AlgorithmUsage Enc
-
SigDig
public static final XMLSecurityConstants.AlgorithmUsage SigDig
-
EncDig
public static final XMLSecurityConstants.AlgorithmUsage EncDig
-
SigC14n
public static final XMLSecurityConstants.AlgorithmUsage SigC14n
-
SigTransform
public static final XMLSecurityConstants.AlgorithmUsage SigTransform
-
-
Method Detail
-
generateBytes
public static byte[] generateBytes(int length) throws XMLSecurityException
Generate bytes of the given length using the SHA1PRNG algorithm. The SecureRandom instance that backs this method is cached for efficiency.- Returns:
- a byte array of the given length
- Throws:
WSSecurityException
XMLSecurityException
-
setJaxbContext
public static void setJaxbContext(JAXBContext jaxbContext)
-
setJaxbSchemas
public static void setJaxbSchemas(Schema schema)
-
getJaxbSchemas
public static Schema getJaxbSchemas()
-
getJaxbUnmarshaller
public static Unmarshaller getJaxbUnmarshaller(boolean disableSchemaValidation) throws JAXBException
- Throws:
JAXBException
-
-