public class WebServiceAuthenticationHelper extends Object
Helper class that authenticates user credentials prior to invoking a web service that requires authentication. Authentication is carried out during construction and the CAS generated Ticket Granting Ticket is saved for subsequent web service invocations.
Invoking a web service using the invoke() method involves obtaining a CAS service ticket which is then passed to the web service provider as a URI parameter. The web service provider application then obtains the user attributes via its CAS validation filter.
| Constructor and Description |
|---|
WebServiceAuthenticationHelper(String casServer,
String userName,
String password)
Constructor that authenticates the user credentials and obtains a CAS Ticket Granting ticket.
|
Copyright © 2017. All rights reserved.