/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: EncryptedNameIdentifier.java,v 1.4 2008/06/25 05:46:46 qcheng Exp $
* Portions Copyrighted 2014 ForgeRock AS
*/
/**
* This class <code>EncryptedNameIdentifier</code> represents a
* <code>EncryptableNameIdentifier</code> in an encrypted form.
*
* @supported.all.api
* @deprecated since 12.0.0
*/
public class EncryptedNameIdentifier {
/**
* Returns the encryptable XML document element.
*
* @param eni the <code>EncrytableNameIdentifier</code> object.
*
* @return the <code>EncryptedNameIdentifier</code> XML Document.
*/
}
}
/**
* Returns the <code>EncryptedNameIdentifier</code> for a given name
* identifier and the provider ID.
*
* @param ni the <code>NameIdentifier</code> object.
* @param realm The realm under which the entity resides.
* @param providerID the remote provider identifier.
* @return the <code>NameIdentifier</code> object.
* @throws FSException on error.
*/
throws FSException {
"nullInputParameter");
}
try {
if (metaManager != null) {
if (providerDesc == null) {
realm, providerID);
}
}
if (providerDesc == null) {
}
} catch (IDFFMetaException ae) {
"not retrieve the meta for provider" + providerID);
throw new FSException(ae);
}
}
/**
* Gets then Encrypted NameIdentifier for a given name identifier
* and the provider ID.
* @param ni NameIdentifier.
* @param providerID Remote Provider ID.
* @param enckey Key Encryption Key
* @param dataEncAlgorithm Data encryption algorithm
* @param dataEncStrength Data encryption key size
*
* @return NameIdentifier EncryptedNameIdentifier.
* @exception FSException for failure.
*/
"nullInputParameter");
}
try {
0, // TODO: should we pick it up from extended meta?
} catch (EncryptionException ee) {
"to encrypt the xml doc", ee);
throw new FSException(ee);
}
if(encryptedDoc == null) {
}
try {
} catch(SAMLException se) {
throw new FSException(se);
}
}
/**
* Returns the decrypted <code>NameIdentifier</code> object.
*
* @param encNI the <code>EncryptedNameIdentifier</code> object.
* @param realm The realm under which the entity resides.
* @param providerID the Hosted Provider Identifer.
* @return the <code>NameIdentifier</code> object,
* the decrypted <code>NameIdentifier</code>.
* @throws FSException on error.
*/
throws FSException
{
"Identifier: null values");
}
try {
if (providerConfig == null) {
}
"Identifier: Unable to find provider", ae);
throw new FSException(ae);
}
if (providerConfig == null) {
"Identifier: Unable to find provider " + providerID);
}
return getDecryptedNameIdentifier(encNI,
}
/**
* Gets the decrypted NameIdentifier.
* @param encNI EncryptedNameIdentifier.
* @param decKey decryption key.
*
* @return NameIdentifier Decrypted NameIdentifier.
* @exception FSException for failures
*/
}
try {
} catch (EncryptionException ee) {
"Identifier: Decryption exception", ee);
throw new FSException(ee);
} catch (SAMLException se) {
throw new FSException(se);
}
}
}