org.apache.xml.security.stax.ext
Class XMLSecurityConstants

java.lang.Object
  extended by org.apache.xml.security.stax.ext.XMLSecurityConstants

public class XMLSecurityConstants
extends Object

XMLSecurityConstants for global use

Version:
$Revision: 1582717 $ $Date: 2014-03-28 11:54:21 +0000 (Fri, 28 Mar 2014) $
Author:
$Author: coheigea $

Nested Class Summary
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
static XMLSecurityConstants.AlgorithmUsage Asym_Key_Wrap
           
static XMLSecurityConstants.AlgorithmUsage Asym_Sig
           
static QName ATT_NULL_Algorithm
           
static QName ATT_NULL_Encoding
           
static QName ATT_NULL_Id
           
static QName ATT_NULL_MimeType
           
static QName ATT_NULL_PrefixList
           
static QName ATT_NULL_Type
           
static QName ATT_NULL_URI
           
static DatatypeFactory datatypeFactory
           
static XMLSecurityConstants.AlgorithmUsage Enc
           
static XMLSecurityConstants.AlgorithmUsage EncDig
           
static XMLSecurityConstants.Action ENCRYPT
           
static String ENCRYPTION_PARTS
           
static String NS_C14N_EXCL
           
static String NS_C14N_EXCL_OMIT_COMMENTS
           
static String NS_C14N_EXCL_WITH_COMMENTS
           
static String NS_C14N_OMIT_COMMENTS
           
static String NS_C14N_WITH_COMMENTS
           
static String NS_C14N11_OMIT_COMMENTS
           
static String NS_C14N11_WITH_COMMENTS
           
static String NS_DSIG
           
static String NS_DSIG_MORE
           
static String NS_DSIG11
           
static String NS_MGF1_SHA1
           
static String NS_MGF1_SHA224
           
static String NS_MGF1_SHA256
           
static String NS_MGF1_SHA384
           
static String NS_MGF1_SHA512
           
static String NS_WSSE11
           
static String NS_XENC_AES128
           
static String NS_XENC_AES192
           
static String NS_XENC_AES256
           
static String NS_XENC_RSA15
           
static String NS_XENC_RSAOAEPMGF1P
           
static String NS_XENC_SHA256
           
static String NS_XENC_SHA512
           
static String NS_XENC_TRIPLE_DES
           
static String NS_XENC11_AES128_GCM
           
static String NS_XENC11_AES192_GCM
           
static String NS_XENC11_AES256_GCM
           
static String NS_XENC11_RSAOAEP
           
static String NS_XML
           
static String NS_XMLDSIG_ENVELOPED_SIGNATURE
           
static String NS_XMLDSIG_FILTER2
           
static String NS_XMLDSIG_HMACSHA1
           
static String NS_XMLDSIG_HMACSHA256
           
static String NS_XMLDSIG_HMACSHA384
           
static String NS_XMLDSIG_HMACSHA512
           
static String NS_XMLDSIG_MANIFEST
           
static String NS_XMLDSIG_RSASHA1
           
static String NS_XMLDSIG_RSASHA256
           
static String NS_XMLDSIG_RSASHA384
           
static String NS_XMLDSIG_RSASHA512
           
static String NS_XMLDSIG_SHA1
           
static String NS_XMLENC
           
static String NS_XMLENC11
           
static String PREFIX_C14N_EXCL
           
static String PREFIX_DSIG
           
static String PREFIX_DSIG11
           
static String PREFIX_WSSE11
           
static String PREFIX_XENC
           
static String PREFIX_XENC11
           
static String PROP_USE_THIS_TOKEN_ID_FOR_ENCRYPTED_KEY
           
static String PROP_USE_THIS_TOKEN_ID_FOR_ENCRYPTION
           
static String PROP_USE_THIS_TOKEN_ID_FOR_SIGNATURE
           
static XMLSecurityConstants.AlgorithmUsage SigC14n
           
static XMLSecurityConstants.AlgorithmUsage SigDig
           
static XMLSecurityConstants.Action SIGNATURE
           
static String SIGNATURE_PARTS
           
static XMLSecurityConstants.AlgorithmUsage SigTransform
           
static XMLSecurityConstants.AlgorithmUsage Sym_Key_Wrap
           
static XMLSecurityConstants.AlgorithmUsage Sym_Sig
           
static QName TAG_c14nExcl_InclusiveNamespaces
           
static QName TAG_dsig_CanonicalizationMethod
           
static QName TAG_dsig_DigestMethod
           
static QName TAG_dsig_DigestValue
           
static QName TAG_dsig_DSAKeyValue
           
static QName TAG_dsig_Exponent
           
static QName TAG_dsig_G
           
static QName TAG_dsig_HMACOutputLength
           
static QName TAG_dsig_J
           
static QName TAG_dsig_KeyInfo
           
static QName TAG_dsig_KeyName
           
static QName TAG_dsig_KeyValue
           
static QName TAG_dsig_Manifest
           
static QName TAG_dsig_Modulus
           
static QName TAG_dsig_P
           
static QName TAG_dsig_PgenCounter
           
static QName TAG_dsig_Q
           
static QName TAG_dsig_Reference
           
static QName TAG_dsig_RSAKeyValue
           
static QName TAG_dsig_Seed
           
static QName TAG_dsig_Signature
           
static QName TAG_dsig_SignatureMethod
           
static QName TAG_dsig_SignatureValue
           
static QName TAG_dsig_SignedInfo
           
static QName TAG_dsig_Transform
           
static QName TAG_dsig_Transforms
           
static QName TAG_dsig_X509Certificate
           
static QName TAG_dsig_X509Data
           
static QName TAG_dsig_X509IssuerName
           
static QName TAG_dsig_X509IssuerSerial
           
static QName TAG_dsig_X509SerialNumber
           
static QName TAG_dsig_X509SKI
           
static QName TAG_dsig_X509SubjectName
           
static QName TAG_dsig_Y
           
static QName TAG_dsig11_ECKeyValue
           
static QName TAG_dsig11_ECParameters
           
static QName TAG_dsig11_NamedCurve
           
static QName TAG_dsig11_PublicKey
           
static QName TAG_wsse11_EncryptedHeader
           
static QName TAG_xenc_CipherData
           
static QName TAG_xenc_CipherReference
           
static QName TAG_xenc_CipherValue
           
static QName TAG_xenc_DataReference
           
static QName TAG_xenc_EncryptedData
           
static QName TAG_xenc_EncryptedKey
           
static QName TAG_xenc_EncryptionMethod
           
static QName TAG_xenc_EncryptionProperties
           
static QName TAG_xenc_OAEPparams
           
static QName TAG_xenc_ReferenceList
           
static QName TAG_xenc_Transforms
           
static QName TAG_xenc11_MGF
           
static String XMLINPUTFACTORY
           
static XMLOutputFactory xmlOutputFactory
           
static XMLOutputFactory xmlOutputFactoryNonRepairingNs
           
 
Constructor Summary
protected XMLSecurityConstants()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

XMLSecurityConstants

protected XMLSecurityConstants()
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


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.