net.rim.pushsdk.subscription.auth
Class ContentProviderAuthServiceImpl
java.lang.Object
net.rim.pushsdk.subscription.auth.ContentProviderAuthServiceImpl
- All Implemented Interfaces:
- ContentProviderAuthenticationService
public class ContentProviderAuthServiceImpl
- extends Object
- implements ContentProviderAuthenticationService
Basic implementation of the ContentProviderAuthenticationService interface.
- Author:
- mdandrea
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentProviderAuthServiceImpl
public ContentProviderAuthServiceImpl()
authenticateSubscriber
public SubscriberPrincipal authenticateSubscriber(BaseAuthenticationRequest baseAuthenticationRequest)
throws AuthenticationFailureException
- In this implementation, authentication is always successful and
AuthenticationFailureException is never
thrown. A subscriber principal is returned which contains the username from baseAuthenticationRequest as its
name and a set containing an example property. The example property is the subscription type from the request with a key of
"subscriptionType". Note that it assumes an object of class AuthenticationRequest is passed in as
baseAuthenticationRequest.
- Specified by:
authenticateSubscriber in interface ContentProviderAuthenticationService
- Parameters:
baseAuthenticationRequest - object containing authentication information
- Returns:
- a principal containing the results of a successful authentication
- Throws:
AuthenticationFailureException - if authentication failed
Copyright © 2011 Research In Motion. All Rights Reserved.