com.atlassian.confluence.plugins.dailysummary.components.impl
Class DefaultUnsubscribeTokenManager

java.lang.Object
  extended by com.atlassian.confluence.plugins.dailysummary.components.impl.DefaultUnsubscribeTokenManager
All Implemented Interfaces:
SingleUseUnsubscribeTokenManager

public class DefaultUnsubscribeTokenManager
extends java.lang.Object
implements SingleUseUnsubscribeTokenManager


Constructor Summary
DefaultUnsubscribeTokenManager(UserAccessor userAccessor, com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator)
           
 
Method Summary
 java.lang.String getUserToken(com.atlassian.user.User user)
           
 boolean isValidToken(com.atlassian.user.User user, java.lang.String token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUnsubscribeTokenManager

public DefaultUnsubscribeTokenManager(UserAccessor userAccessor,
                                      com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator)
Method Detail

getUserToken

public java.lang.String getUserToken(com.atlassian.user.User user)
Specified by:
getUserToken in interface SingleUseUnsubscribeTokenManager

isValidToken

public boolean isValidToken(com.atlassian.user.User user,
                            java.lang.String token)
Specified by:
isValidToken in interface SingleUseUnsubscribeTokenManager


Copyright © 2003-2014 Atlassian. All Rights Reserved.