[java-xmltooling COMMIT] in /branches/REL_1/src/main/java/org/opensaml/xml: encryption/EncryptionConstants.java secur...
noreply at shibboleth.net
noreply at shibboleth.net
Wed Jan 16 17:34:58 EST 2013
Author: scantor
Date: Wed Jan 16 17:34:58 2013
New Revision: 771
URL: http://svn.shibboleth.net/view/java-xmltooling?rev=771&view=rev
Log:
JXT-95: Constants and supporting code for XML Sig 1.1
Modified:
branches/REL_1/src/main/java/org/opensaml/xml/encryption/EncryptionConstants.java
branches/REL_1/src/main/java/org/opensaml/xml/security/ApacheXMLSecurityConstants.java
branches/REL_1/src/main/java/org/opensaml/xml/security/SecurityHelper.java
branches/REL_1/src/main/java/org/opensaml/xml/signature/SignatureConstants.java
branches/REL_1/src/main/java/org/opensaml/xml/util/XMLConstants.java
Modified: branches/REL_1/src/main/java/org/opensaml/xml/encryption/EncryptionConstants.java
URL: http://svn.shibboleth.net/view/java-xmltooling/branches/REL_1/src/main/java/org/opensaml/xml/encryption/EncryptionConstants.java?rev=771&r1=770&r2=771&view=diff
==============================================================================
--- branches/REL_1/src/main/java/org/opensaml/xml/encryption/EncryptionConstants.java (original)
+++ branches/REL_1/src/main/java/org/opensaml/xml/encryption/EncryptionConstants.java Wed Jan 16 17:34:58 2013
@@ -20,29 +20,28 @@
import org.opensaml.xml.util.XMLConstants;
/**
- * Constants defined in or related to the XML Encryption specification, version 20021210.
+ * Constants defined in or related to the XML Encryption 1.0 and 1.1 specifications.
*/
-public class EncryptionConstants {
+public final class EncryptionConstants {
// *********************************************************
// URI values which represent type attribute values
// *********************************************************
/** URI for Content. */
- public static final String TYPE_CONTENT = XMLConstants.XMLENC_NS + "Content";
+ public static final String TYPE_CONTENT = XMLConstants.XMLENC_NS + "Content";
/** URI for Element. */
- public static final String TYPE_ELEMENT = XMLConstants.XMLENC_NS + "Element";
+ public static final String TYPE_ELEMENT = XMLConstants.XMLENC_NS + "Element";
/** URI for EncryptionProperties. */
- public static final String TYPE_ENCRYPTION_PROPERTIES = XMLConstants.XMLENC_NS + "EncryptionProperties";
+ public static final String TYPE_ENCRYPTION_PROPERTIES = XMLConstants.XMLENC_NS + "EncryptionProperties";
/** URI for EncryptedKey. */
- public static final String TYPE_ENCRYPTED_KEY = XMLConstants.XMLENC_NS + "EncryptedKey";
+ public static final String TYPE_ENCRYPTED_KEY = XMLConstants.XMLENC_NS + "EncryptedKey";
/** URI for DHKeyValue. */
- public static final String TYPE_KEYINFO_DH_KEYVALUE = XMLConstants.XMLENC_NS + "DHKeyValue";
+ public static final String TYPE_KEYINFO_DH_KEYVALUE = XMLConstants.XMLENC_NS + "DHKeyValue";
-
// *************************************************
// Block encryption algorithms
// *************************************************
@@ -61,10 +60,10 @@
// *************************************************
// Key Transport
// *************************************************
- /** Key Transport - REQUIRED RSA-v1.5. */
+ /** Key Transport - OPTIONAL RSA-v1.5. */
public static final String ALGO_ID_KEYTRANSPORT_RSA15 = XMLConstants.XMLENC_NS + "rsa-1_5";
- /** Key Transport - REQUIRED RSA-OAEP. */
+ /** Key Transport - REQUIRED RSA-OAEP (including MGF1 with SHA1). */
public static final String ALGO_ID_KEYTRANSPORT_RSAOAEP = XMLConstants.XMLENC_NS + "rsa-oaep-mgf1p";
// *************************************************
@@ -91,7 +90,7 @@
// *************************************************
// Message Digest
// *************************************************
- /** Message Digest - RECOMMENDED SHA256. */
+ /** Message Digest - REQUIRED SHA256. */
public static final String ALGO_ID_DIGEST_SHA256 = XMLConstants.XMLENC_NS + "sha256";
/** Message Digest - OPTIONAL SHA512. */
@@ -100,4 +99,26 @@
/** Message Digest - OPTIONAL RIPEMD-160. */
public static final String ALGO_ID_DIGEST_RIPEMD160 = XMLConstants.XMLENC_NS + "ripemd160";
-}
+ // *********************************************************
+ // Some additional algorithm URIs from XML Encryption 1.1
+ // *********************************************************
+ /** Key Transport - OPTIONAL RSA-OAEP. */
+ public static final String ALGO_ID_KEYTRANSPORT_RSAOAEP11 = XMLConstants.XMLENC11_NS + "rsa-oaep";
+
+ /** Block Encryption - REQUIRED AES128-GCM. */
+ public static final String ALGO_ID_BLOCKCIPHER_AES128_GCM = XMLConstants.XMLENC11_NS + "aes128-gcm";
+
+ /** Block Encryption - OPTIONAL AES192-GCM. */
+ public static final String ALGO_ID_BLOCKCIPHER_AES192_GCM = XMLConstants.XMLENC11_NS + "aes192-gcm";
+
+ /** Block Encryption - OPTIONAL AES256-GCM. */
+ public static final String ALGO_ID_BLOCKCIPHER_AES256_GCM = XMLConstants.XMLENC11_NS + "aes256-gcm";
+
+ /** URI for DerivedKey. */
[... 363 lines stripped ...]
More information about the commits
mailing list