SAML2ProviderManager.java revision a688bcbb4bcff5398fdd29b86f83450257dc0df4
/**
* 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: SAML2ProviderManager.java,v 1.3 2008/06/25 05:47:52 qcheng Exp $
*
*/
/**
* The class <code>SAML2ProviderManager</code> retrieves properties consumed
* by IDWSF from providers defined in SAML2.
*/
public class SAML2ProviderManager implements ProviderManager {
private static SAML2MetaManager metaManager =
/**
* Returns whether the specified provider exists or not.
* @param providerID provider ID.
* @return true if the specified provider exists, false if it doesn't
* exist.
*/
try {
} catch (SAML2MetaException smex) {
"SAML2ProviderManager.containsProvider:", smex);
}
}
/**
* Returns whether the specified provider is a member of the specified
* affiliation or not.
* @param providerID provider ID.
* @return true if the specified provider is a member of the specified
* affiliation, false if it is not.
*/
return false;
}
/**
* Returns whether the specified provider requires name ID encryption
* or not.
* @param providerID provider ID.
* @return true if the specified provider requires name ID encryption,
* false if it doesn't.
*/
try {
}
} catch (SAML2MetaException smex) {
"SAML2ProviderManager.isNameIDEncryptionEnabled:", smex);
}
"SAML2ProviderManager.isNameIDEncryptionEnabled:" +
"config not found.");
}
return false;
}
}
}
return ((wantEncrypted != null) &&
}
/**
* Gets encryption certificate alias for specified provider.
* @param providerID provider ID.
* @return encryption certificate alias for specified provider.
*/
}
/**
* Gets encryption key size for specified provider.
* @param providerID provider ID.
* @return encryption key size for specified provider.
*/
}
/**
* Gets encryption key method for specified provider.
* @param providerID provider ID.
* @return encryption key method for specified provider.
*/
}
/**
* Gets decryption key for specified provider.
* @param providerID provider ID.
* @return decryption key for specified provider.
*/
try {
if (providerConfig == null) {
}
} catch (SAML2MetaException smex) {
smex);
}
if (providerConfig == null) {
return null;
}
}
/**
* Gets signing certificate alias for specified provider.
* @param providerID provider ID.
* @return signing certificate alias for specified provider.
*/
try {
}
} catch (SAML2MetaException smex) {
"SAML2ProviderManager.getSigningKeyAlias:", smex);
}
"SAML2ProviderManager.getSigningKeyAlias:" +
"config not found.");
}
return null;
}
}
try {
}
} catch (SAML2MetaException smex) {
"SAML2ProviderManager.getEncInfo:", smex);
}
"SAML2ProviderManager.getEncInfo: Descriptor not found.");
}
return null;
}
}
}