Access Java Library in IDP v5
Ruderman, Kevin
rudi at bu.edu
Mon Mar 11 19:38:14 UTC 2024
Hi Folks,
I global.xml I have:
<util:map id="shibboleth.CustomViewContext">
<entry key="hostname" value="#{systemEnvironment['HOSTNAME']}"/>
</util:map>
In tomcat bin/setenv.sh I add:
# Used in global.xml and then login.vm as a breadcrumb comment
HOSTNAME=`/usr/bin/hostname 2>/dev/null`
export HOSTNAME
Then in login.vm I have:
<!-- Hostname ID: $custom['hostname'] -->
For me it's just there so I can tell the backend. I don't display it to users but I could.
Regards, Kevin
-----------------------
Kevin Ruderman | Senior IAM Engineer / Architect | he/him
Boston University Information Services & Technology
________________________________
From: users <users-bounces at shibboleth.net> on behalf of Cantor, Scott via users <users at shibboleth.net>
Sent: Monday, March 11, 2024 3:17 PM
To: Shib Users <users at shibboleth.net>
Cc: Cantor, Scott <cantor.2 at osu.edu>
Subject: Re: Access Java Library in IDP v5
You probably were getting away with something improper, if you want a class object, that would be class="T(classname)".
I think you can also get hold of classes indirectly in Velocity with a trick like $object.getClass().forName("name of other class") because you can call static methods on actual objects.
> What is the best way to get a hosts DNS name?
A custom property set differently per host probably.
-- Scott
--
For Consortium Member technical support, see https://shibboleth.atlassian.net/wiki/x/ZYEpPw
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20240311/51b21ce1/attachment.htm>
More information about the users
mailing list