The SAMLClient class provides methods to execute either the Web Browser Artifact Profile or the Web Browser POST Profile from within an application as opposed to a web browser. Its methods include the following:
getAssertionByArtifact returns an assertion for a corresponding artifact.
doWebPOST executes the Web Browser POST Profile.
doWebArtifact executes the Web Browser Artifact Profile.