Package org.apache.xml.security.utils
Class Constants
java.lang.Object
org.apache.xml.security.utils.Constants
Provides all constants and some translation functions for i18n.
For the used Algorithm identifiers and Namespaces, look at the
XML
Signature specification.
- Author:
- $Author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Tag of Attr Algorithmstatic final String
Tag of Attr Encodingstatic final String
Tag of Attr Idstatic final String
Tag of Attr MimeTypestatic final String
Tag of Attr Targetstatic final String
Tag of Attr Typestatic final String
Tag of Attr URIstatic final String
Tag of Element CanonicalizationMethodstatic final String
Tag of Element DigestMethodstatic final String
Tag of Element DigestValuestatic final String
Tag of Element DSAKeyValuestatic final String
Tag of Element Exponentstatic final String
Tag of Element Gstatic final String
Tag of Element HMACOutputLengthstatic final String
Tag of Element Jstatic final String
Tag of Element KeyInfostatic final String
Tag of Element KeyNamestatic final String
Tag of Element KeyValuestatic final String
Tag of Element Manifeststatic final String
Tag of Element Methodsstatic final String
Tag of Element MgmtDatastatic final String
Tag of Element Modulusstatic final String
Tag of Element Objectstatic final String
Tag of Element Pstatic final String
Tag of Element PgenCounterstatic final String
Tag of Element PGPDatastatic final String
Tag of Element PGPKeyIDstatic final String
Tag of Element PGPKeyPacketstatic final String
Tag of Element Qstatic final String
Tag of Element rawX509Certificatestatic final String
Tag of Element Referencestatic final String
Tag of Element RetrievalMethodstatic final String
Tag of Element RSAKeyValuestatic final String
Tag of Element Seedstatic final String
Tag of Element Signaturestatic final String
Tag of Element SignatureMethodstatic final String
Tag of Element SignaturePropertiesstatic final String
Tag of Element SignaturePropertystatic final String
Tag of Element SignatureValuestatic final String
Tag of Element SignedInfostatic final String
Tag of Element SPKIDatastatic final String
Tag of Element SPKISexpstatic final String
Tag of Element Transformstatic final String
Tag of Element Transformsstatic final String
Tag of Element X509Certificatestatic final String
Tag of Element X509CRLstatic final String
Tag of Element X509Datastatic final String
Tag of Element X509IssuerNamestatic final String
Tag of Element X509IssuerSerialstatic final String
Tag of Element X509SerialNumberstatic final String
Tag of Element X509SKIstatic final String
Tag of Element X509SubjectNamestatic final String
Tag of Element XPathstatic final String
Tag of Element Ystatic final String
Digest - Required SHA1static final String
static String
Field configurationFilestatic final String
Field configurationFileNewstatic final String
Field exceptionMessagesResourceBundleBase is the location of theResourceBundle
static final String
Field exceptionMessagesResourceBundleDirstatic final String
The URL for more algorithmstatic final String
The URI for XMLNS specstatic final String
The URL of the XML Signature specificationstatic final String
The namespace of the XML Signature specificationstatic final String
The URI for XML spec -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the XML namespace prefix which is used for elements in the XML Signature namespace.static void
setSignatureSpecNSprefix
(String newPrefix) Sets the namespace prefix which will be used to identify elements in the XML Signature Namespace.
-
Field Details
-
configurationFile
Field configurationFile -
configurationFileNew
Field configurationFileNew- See Also:
-
exceptionMessagesResourceBundleDir
Field exceptionMessagesResourceBundleDir- See Also:
-
exceptionMessagesResourceBundleBase
Field exceptionMessagesResourceBundleBase is the location of theResourceBundle
- See Also:
-
SIGNATURESPECIFICATION_URL
The URL of the XML Signature specification- See Also:
-
SignatureSpecNS
The namespace of the XML Signature specification- See Also:
-
MoreAlgorithmsSpecNS
The URL for more algorithm- See Also:
-
XML_LANG_SPACE_SpecNS
The URI for XML spec- See Also:
-
NamespaceSpecNS
The URI for XMLNS spec- See Also:
-
_ATT_ALGORITHM
Tag of Attr Algorithm- See Also:
-
_ATT_URI
Tag of Attr URI- See Also:
-
_ATT_TYPE
Tag of Attr Type- See Also:
-
_ATT_ID
Tag of Attr Id- See Also:
-
_ATT_MIMETYPE
Tag of Attr MimeType- See Also:
-
_ATT_ENCODING
Tag of Attr Encoding- See Also:
-
_ATT_TARGET
Tag of Attr Target- See Also:
-
_TAG_CANONICALIZATIONMETHOD
Tag of Element CanonicalizationMethod- See Also:
-
_TAG_DIGESTMETHOD
Tag of Element DigestMethod- See Also:
-
_TAG_DIGESTVALUE
Tag of Element DigestValue- See Also:
-
_TAG_MANIFEST
Tag of Element Manifest- See Also:
-
_TAG_METHODS
Tag of Element Methods- See Also:
-
_TAG_OBJECT
Tag of Element Object- See Also:
-
_TAG_REFERENCE
Tag of Element Reference- See Also:
-
_TAG_SIGNATURE
Tag of Element Signature- See Also:
-
_TAG_SIGNATUREMETHOD
Tag of Element SignatureMethod- See Also:
-
_TAG_HMACOUTPUTLENGTH
Tag of Element HMACOutputLength- See Also:
-
_TAG_SIGNATUREPROPERTIES
Tag of Element SignatureProperties- See Also:
-
_TAG_SIGNATUREPROPERTY
Tag of Element SignatureProperty- See Also:
-
_TAG_SIGNATUREVALUE
Tag of Element SignatureValue- See Also:
-
_TAG_SIGNEDINFO
Tag of Element SignedInfo- See Also:
-
_TAG_TRANSFORM
Tag of Element Transform- See Also:
-
_TAG_TRANSFORMS
Tag of Element Transforms- See Also:
-
_TAG_XPATH
Tag of Element XPath- See Also:
-
_TAG_KEYINFO
Tag of Element KeyInfo- See Also:
-
_TAG_KEYNAME
Tag of Element KeyName- See Also:
-
_TAG_KEYVALUE
Tag of Element KeyValue- See Also:
-
_TAG_RETRIEVALMETHOD
Tag of Element RetrievalMethod- See Also:
-
_TAG_X509DATA
Tag of Element X509Data- See Also:
-
_TAG_PGPDATA
Tag of Element PGPData- See Also:
-
_TAG_SPKIDATA
Tag of Element SPKIData- See Also:
-
_TAG_MGMTDATA
Tag of Element MgmtData- See Also:
-
_TAG_RSAKEYVALUE
Tag of Element RSAKeyValue- See Also:
-
_TAG_EXPONENT
Tag of Element Exponent- See Also:
-
_TAG_MODULUS
Tag of Element Modulus- See Also:
-
_TAG_DSAKEYVALUE
Tag of Element DSAKeyValue- See Also:
-
_TAG_P
Tag of Element P- See Also:
-
_TAG_Q
Tag of Element Q- See Also:
-
_TAG_G
Tag of Element G- See Also:
-
_TAG_Y
Tag of Element Y- See Also:
-
_TAG_J
Tag of Element J- See Also:
-
_TAG_SEED
Tag of Element Seed- See Also:
-
_TAG_PGENCOUNTER
Tag of Element PgenCounter- See Also:
-
_TAG_RAWX509CERTIFICATE
Tag of Element rawX509Certificate- See Also:
-
_TAG_X509ISSUERSERIAL
Tag of Element X509IssuerSerial- See Also:
-
_TAG_X509SKI
Tag of Element X509SKI- See Also:
-
_TAG_X509SUBJECTNAME
Tag of Element X509SubjectName- See Also:
-
_TAG_X509CERTIFICATE
Tag of Element X509Certificate- See Also:
-
_TAG_X509CRL
Tag of Element X509CRL- See Also:
-
_TAG_X509ISSUERNAME
Tag of Element X509IssuerName- See Also:
-
_TAG_X509SERIALNUMBER
Tag of Element X509SerialNumber- See Also:
-
_TAG_PGPKEYID
Tag of Element PGPKeyID- See Also:
-
_TAG_PGPKEYPACKET
Tag of Element PGPKeyPacket- See Also:
-
_TAG_SPKISEXP
Tag of Element SPKISexp- See Also:
-
ALGO_ID_DIGEST_SHA1
Digest - Required SHA1- See Also:
-
ALGO_ID_SIGNATURE_ECDSA_CERTICOM
- See Also:
-
-
Method Details
-
setSignatureSpecNSprefix
Sets the namespace prefix which will be used to identify elements in the XML Signature Namespace.Constants.setSignatureSpecNSprefix("dsig");
- Parameters:
newPrefix
- is the new namespace prefix.- Throws:
XMLSecurityException
- See Also:
-
getSignatureSpecNSprefix
Returns the XML namespace prefix which is used for elements in the XML Signature namespace. It is defaulted todsig
, but can be changed using thesetSignatureSpecNSprefix(java.lang.String)
function.- Returns:
- the current used namespace prefix
- See Also:
-