Scripted Attribute Resolver ClassNotFoundException

Cantor, Scott cantor.2 at osu.edu
Wed Jun 1 10:59:37 EDT 2016


> Unfortunately I need to be able to read in a PEM file from disk and use it
> and the RSA cipher to sign some data.  This is for a legacy application and
> I wish it didn't need it this way but I can't find another way to get Java
> to read this PEM file and extract the private key inside.

We have code to do all that in the IdP. If you build a bean definition in global.xml using the same bean factories we use you can get it instantiated by Spring and just access it in your script by injecting it via customObjectRef.

> This attribute won't be used often but reading a PEM file from disk every
> time I need to release the attribute doesn't seem like the most efficient
> way to go about this.

SAML already provides the ability to encrypt attributes, so I don't understand why you're going to all this trouble. Also, you don't need a private key to encrypt, you need a public key.

-- Scott



More information about the users mailing list