net.rim.pushsdk.subscription.auth
Class ContentProviderAuthServiceImpl

java.lang.Object
  extended by 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

Constructor Summary
ContentProviderAuthServiceImpl()
           
 
Method Summary
 SubscriberPrincipal authenticateSubscriber(BaseAuthenticationRequest baseAuthenticationRequest)
          In this implementation, authentication is always successful and AuthenticationFailureException is never thrown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentProviderAuthServiceImpl

public ContentProviderAuthServiceImpl()
Method Detail

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.