Accessing Metadata via Java
Brent Putman
putmanb at georgetown.edu
Mon Jan 30 22:43:57 GMT 2012
On 1/28/12 6:18 PM, Ken Schwartzreich wrote:
> Thanks, Scott. Which API call(s) can I use to retrieve the
> MetadataProvider? SAMLMDRelyingPartyConfigurationManager
> <./edu/internet2/middleware/shibboleth/common/relyingparty/provider/SAMLMDRelyingPartyConfigurationManager.html>.getMetaDataProvider()
> ?
>
I believe that is indeed how to get the configured MetadataProvider
within the IdP. However, since what you really said you want to do is
resolve an encryption Credential for the SP: rather than processing the
metadata directly, you can use the
org.opensaml.security.MetadataCredentialResolver, which is a
CredentialResolver impl that does exactly that.
For usage guidelines, see the IdP's abstract SAML 2 profile handler
impl, in particular the getEncrypter(String peerEntityId) method and the
methods called from it:
http://svn.shibboleth.net/view/java-shib-idp2/branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/AbstractSAML2ProfileHandler.java?view=markup
HTH,
Brent
More information about the dev
mailing list