...
Code Block | ||||
---|---|---|---|---|
| ||||
String samlAssertion = getAssertion(); // Example only. Portlet obtains a String containing SAML assertion
samlSession = new SAMLSession(samlAssertion);
samlSession.setPortalEntityID(portalEntityID); // Set the portal's entityID. The library must provide it to the IdP.
Resource resource = new Resource (); // Simple example class representing a protected resource
resource.setResourceUrl(url); // The url variable here is a String initialized elsewhere
getResource(samlSession, resource); // Portlet's local method detailed below
|
...