AMEncryptionProvider.java revision 905b8e215b24a1b5d547692cef530c0d2ab545c9
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * The contents of this file are subject to the terms
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * of the Common Development and Distribution License
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * (the License). You may not use this file except in
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * compliance with the License.
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * You can obtain a copy of the License at
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * https://opensso.dev.java.net/public/CDDLv1.0.html or
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * See the License for the specific language governing
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * permission and limitations under the License.
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * When distributing Covered Code, include this CDDL
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * Header Notice in each file and include the License file
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * If applicable, add the following below the CDDL Header,
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * with the fields enclosed by brackets [] replaced by
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * your own identifying information:
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * "Portions Copyrighted [year] [name of copyright owner]"
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * $Id: AMEncryptionProvider.java,v 1.7 2009/08/29 07:30:38 mallas Exp $
50b8a36b0932a510e825ed1ad8103f81ead2b7d8Pavel Reichl * Portions Copyrighted 2014-2016 ForgeRock AS.
int keyStrength,
int kekStrength)
throws EncryptionException {
int keyStrength,
int kekStrength,
throws EncryptionException {
int keyStrength,
int kekStrength,
throws EncryptionException {
int keyStrength,
int kekStrength,
throws EncryptionException {
int keyStrength,
int kekStrength,
throws EncryptionException {
int keyStrength,
int kekStrength,
boolean isEncryptResourceID)
throws EncryptionException {
throw new EncryptionException(
throw new EncryptionException(
if (isEncryptResourceID) {
if (isEncryptResourceID) {
"http://www.w3.org/2001/04/xmlenc#EncryptedKey");
if (isEncryptResourceID) {
return result;
int kekStrength,
throws EncryptionException {
return null;
throws EncryptionException {
throws EncryptionException {
return encryptedDoc;
, xe);
while (i < length) {
if (i < length) {
return decryptedDoc;
* For example, http://www.w3.org/2001/04/xmlenc#aes128-cbc -> AES
throws EncryptionException {
return null;
throws EncryptionException {
throws EncryptionException {
} catch (Exception e) {
return pk;
return null;