authnContextTranslationStrategyEx: passing through the authenticationContextClassRef unmodified?

Wessel, Keith kwessel at illinois.edu
Thu Oct 14 16:22:32 UTC 2021


Ah. Didn't notice the difference between the authnContextClassRef object that I'm getting back and the principal that I need to put in the collection to return. I get it now.

According to the docs, the AuthnContextClassRef interface doesn't have a getURL method. It has a getAuthnContextClassRef method that returns a string, and I believe that's what I want. But the method is marked as deprecated. Is there another way to get the URL out?

https://shibboleth.net/sites/release/java-opensaml/4.1.1/apidocs/org/opensaml/saml/saml2/core/AuthnContextClassRef.html#getAuthnContextClassRef()

I don't see any other methods that will give me this string.

Keith


-----Original Message-----
From: users <users-bounces at shibboleth.net> On Behalf Of Cantor, Scott
Sent: Thursday, October 14, 2021 10:11 AM
To: Shib Users <users at shibboleth.net>
Subject: Re: authnContextTranslationStrategyEx: passing through the authenticationContextClassRef unmodified?

(Meaning wrap the underlying string value which you have to get via getURL.) An AuthnContextClassRef in the API is an XMLObject, not a string, and the return value of the function is Collection<Principal> so there's translation involved.

-- Scott

On 10/14/21, 11:09 AM, "users on behalf of Cantor, Scott" <users-bounces at shibboleth.net on behalf of cantor.2 at osu.edu> wrote:

    You can't just return it, you still have to wrap it in a Principal of the right type.

    -- Scott


-- 
For Consortium Member technical support, see https://urldefense.com/v3/__https://shibboleth.atlassian.net/wiki/x/ZYEpPw__;!!DZ3fjg!sIXzrG7YVn788I4Ugyb1Fxp8uM75qxUKL0DjYSvVHxZoGLJQuoz8QULy_I6YW9jiEQ$ 
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net


More information about the users mailing list