Gobliins Gobliins - 1 year ago 99
Java Question

opensaml 2.6 to 3.2 SamlSchema and X509Credential

Hi i am currently porting an app to OpenSAML 3.2 and getting Problems with following:

1- SAMLSchemaBuilder has no getSAMLSchema methods:

Schema schema = SAMLSchemaBuilder.getSAML11Schema();

2- The new
only accepts

BasicX509Credential publicCredential = new BasicX509Credential();
SignatureValidator.validate(signature, publicCredential);

Can someone help me?

Answer Source

Quick look on the JavaDoc, it looks like som difference in the constructor and then call getSAMLSchema instead of getSAML11Schema.

For your last question, try using the CredentialSupport class. It has a method for creating a Credential from a X509Certificate. getSimpleCredential

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download