Package org.apache.xml.security.algorithms.encryption.helper

Examples of org.apache.xml.security.algorithms.encryption.helper.AESWrapper


           throws org.apache.xml.security.exceptions.XMLSecurityException {

         if (IV != null && IV.length != 8) {
            throw new XMLSecurityException("empty");
         }
         AESWrapper aw = new AESWrapper(this._cipher);

         return aw.wrap(contentKey, wrapKey, IV);
   }
View Full Code Here


         String wrappedKeyAlgorithm =
            JCEMapper
               .translateURItoJCEID(wrappedKeyURI, this
                  .getRequiredProviderName()).getAlgorithmID();
         int wrappedKeyType = JCEMapper.getKeyTypeFromURI(wrappedKeyURI);
         AESWrapper wrapper = new AESWrapper(this._cipher);
         byte[] encoded = wrapper.unwrap(wrappedKey, wrapKey);

         if (wrappedKeyType == Cipher.SECRET_KEY) {
            return new SecretKeySpec(encoded, wrappedKeyAlgorithm);
         } else {
            try {
View Full Code Here

           throws org.apache.xml.security.exceptions.XMLSecurityException {

         if (IV != null && IV.length != 8) {
            throw new XMLSecurityException("empty");
         }
         AESWrapper aw = new AESWrapper(this._cipher);

         return aw.wrap(contentKey, wrapKey, IV);
   }
View Full Code Here

         String wrappedKeyAlgorithm =
            JCEMapper
               .translateURItoJCEID(wrappedKeyURI, this
                  .getRequiredProviderName()).getAlgorithmID();
         int wrappedKeyType = JCEMapper.getKeyTypeFromURI(wrappedKeyURI);
         AESWrapper wrapper = new AESWrapper(this._cipher);
         byte[] encoded = wrapper.unwrap(wrappedKey, wrapKey);

         if (wrappedKeyType == Cipher.SECRET_KEY) {
            return new SecretKeySpec(encoded, wrappedKeyAlgorithm);
         } else {
            try {
View Full Code Here

TOP

Related Classes of org.apache.xml.security.algorithms.encryption.helper.AESWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.