FileDocCategorySizeDatePackage
Constants.javaAPI DocJava SE 6 API10675Tue Jun 10 00:23:04 BST 2008com.sun.org.apache.xml.internal.security.utils

Constants

public class Constants extends Object
Provides all constants and some translation functions for i18n. For the used Algorithm identifiers and Namespaces, look at the XML Signature specification.
author
$Author: raul $

Fields Summary
static Logger
log
{@link java.util.logging} logging facility
public static final String
configurationFile
Field configurationFile
public static final String
configurationFileNew
Field configurationFileNew
public static final String
exceptionMessagesResourceBundleDir
Field exceptionMessagesResourceBundleDir
public static final String
exceptionMessagesResourceBundleBase
Field exceptionMessagesResourceBundleBase is the location of the ResourceBundle
public static final String
SIGNATURESPECIFICATION_URL
The URL of the XML Signature specification
public static final String
SignatureSpecNS
The namespace of the XML Signature specification
public static final String
MoreAlgorithmsSpecNS
The URL for more algorithm
public static final String
XML_LANG_SPACE_SpecNS
The URI for XML spec
public static final String
NamespaceSpecNS
The URI for XMLNS spec
public static final String
_ATT_ALGORITHM
Tag of Attr Algorithm
public static final String
_ATT_URI
Tag of Attr URI
public static final String
_ATT_TYPE
Tag of Attr Type
public static final String
_ATT_ID
Tag of Attr Id
public static final String
_ATT_MIMETYPE
Tag of Attr MimeType
public static final String
_ATT_ENCODING
Tag of Attr Encoding
public static final String
_ATT_TARGET
Tag of Attr Target
public static final String
_TAG_CANONICALIZATIONMETHOD
Tag of Element CanonicalizationMethod
public static final String
_TAG_DIGESTMETHOD
Tag of Element DigestMethod
public static final String
_TAG_DIGESTVALUE
Tag of Element DigestValue
public static final String
_TAG_MANIFEST
Tag of Element Manifest
public static final String
_TAG_METHODS
Tag of Element Methods
public static final String
_TAG_OBJECT
Tag of Element Object
public static final String
_TAG_REFERENCE
Tag of Element Reference
public static final String
_TAG_SIGNATURE
Tag of Element Signature
public static final String
_TAG_SIGNATUREMETHOD
Tag of Element SignatureMethod
public static final String
_TAG_HMACOUTPUTLENGTH
Tag of Element HMACOutputLength
public static final String
_TAG_SIGNATUREPROPERTIES
Tag of Element SignatureProperties
public static final String
_TAG_SIGNATUREPROPERTY
Tag of Element SignatureProperty
public static final String
_TAG_SIGNATUREVALUE
Tag of Element SignatureValue
public static final String
_TAG_SIGNEDINFO
Tag of Element SignedInfo
public static final String
_TAG_TRANSFORM
Tag of Element Transform
public static final String
_TAG_TRANSFORMS
Tag of Element Transforms
public static final String
_TAG_XPATH
Tag of Element XPath
public static final String
_TAG_KEYINFO
Tag of Element KeyInfo
public static final String
_TAG_KEYNAME
Tag of Element KeyName
public static final String
_TAG_KEYVALUE
Tag of Element KeyValue
public static final String
_TAG_RETRIEVALMETHOD
Tag of Element RetrievalMethod
public static final String
_TAG_X509DATA
Tag of Element X509Data
public static final String
_TAG_PGPDATA
Tag of Element PGPData
public static final String
_TAG_SPKIDATA
Tag of Element SPKIData
public static final String
_TAG_MGMTDATA
Tag of Element MgmtData
public static final String
_TAG_RSAKEYVALUE
Tag of Element RSAKeyValue
public static final String
_TAG_EXPONENT
Tag of Element Exponent
public static final String
_TAG_MODULUS
Tag of Element Modulus
public static final String
_TAG_DSAKEYVALUE
Tag of Element DSAKeyValue
public static final String
_TAG_P
Tag of Element P
public static final String
_TAG_Q
Tag of Element Q
public static final String
_TAG_G
Tag of Element G
public static final String
_TAG_Y
Tag of Element Y
public static final String
_TAG_J
Tag of Element J
public static final String
_TAG_SEED
Tag of Element Seed
public static final String
_TAG_PGENCOUNTER
Tag of Element PgenCounter
public static final String
_TAG_RAWX509CERTIFICATE
Tag of Element rawX509Certificate
public static final String
_TAG_X509ISSUERSERIAL
Tag of Element X509IssuerSerial
public static final String
_TAG_X509SKI
Tag of Element X509SKI
public static final String
_TAG_X509SUBJECTNAME
Tag of Element X509SubjectName
public static final String
_TAG_X509CERTIFICATE
Tag of Element X509Certificate
public static final String
_TAG_X509CRL
Tag of Element X509CRL
public static final String
_TAG_X509ISSUERNAME
Tag of Element X509IssuerName
public static final String
_TAG_X509SERIALNUMBER
Tag of Element X509SerialNumber
public static final String
_TAG_PGPKEYID
Tag of Element PGPKeyID
public static final String
_TAG_PGPKEYPACKET
Tag of Element PGPKeyPacket
public static final String
_TAG_SPKISEXP
Tag of Element SPKISexp
public static final String
ALGO_ID_DIGEST_SHA1
Digest - Required SHA1
public static final String
ALGO_ID_SIGNATURE_ECDSA_CERTICOM
Constructors Summary
private Constants()

   //J+

     
     // we don't allow instantiation
   
Methods Summary
public static java.lang.StringgetSignatureSpecNSprefix()
Returns the XML namespace prefix which is used for elements in the XML Signature namespace. It is defaulted to dsig, but can be changed using the {@link #setSignatureSpecNSprefix} function.

return
the current used namespace prefix
see
#setSignatureSpecNSprefix

      return ElementProxy.getDefaultPrefix(Constants.SignatureSpecNS);
   
public static voidsetSignatureSpecNSprefix(java.lang.String newPrefix)
Sets the namespace prefix which will be used to identify elements in the XML Signature Namespace.
Constants.setSignatureSpecNSprefix("dsig");

param
newPrefix is the new namespace prefix.
throws
XMLSecurityException
see
com.sun.org.apache.xml.internal.security.utils.Constants#getSignatureSpecNSprefix $todo$ Add consistency checking for valid prefix

      ElementProxy.setDefaultPrefix(Constants.SignatureSpecNS, newPrefix);