Class UserNamePassword
java.lang.Object
edu.suffolk.litlab.efsp.server.auth.UserNamePassword
- All Implemented Interfaces:
UserCreds
A class that handles authentication to an external server by simply accepting a user's username
and password, separated by a colon in a header.
Only Tyler is silly enough to do this though, so practically this is just theirs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe user's identifiable name (in Tyler this is an email).static List<org.apache.cxf.headers.Header> makeHeaderList(AuthenticateResponseType authRes) Convenience method to make the Tyler specific SOAP Header.List<org.apache.cxf.headers.Header> userCredsFromAuthorization(String userColonPassword)
-
Constructor Details
-
UserNamePassword
public UserNamePassword() -
UserNamePassword
-
-
Method Details
-
userCredsFromAuthorization
-
getUserName
Description copied from interface:UserCredsThe user's identifiable name (in Tyler this is an email).- Specified by:
getUserNamein interfaceUserCreds
-
toHeaders
-
makeHeaderList
Convenience method to make the Tyler specific SOAP Header.- Parameters:
AuthenticateResponseType- authRes the response from the server if the user is authenticated.- Returns:
- the Header object to the request context's Header.HEADER_LIST
-