001
014
015 package com.liferay.portal.security.auth;
016
017 import com.liferay.portal.kernel.portlet.LiferayPortletURL;
018 import com.liferay.portal.model.Portlet;
019
020 import java.util.Set;
021
022 import javax.servlet.http.HttpServletRequest;
023
024
028 public interface AuthTokenWhitelist {
029
030
033 @Deprecated
034 public Set<String> getOriginCSRFWhitelist();
035
036
039 @Deprecated
040 public Set<String> getPortletCSRFWhitelist();
041
042
045 @Deprecated
046 public Set<String> getPortletCSRFWhitelistActions();
047
048
051 @Deprecated
052 public Set<String> getPortletInvocationWhitelist();
053
054
057 @Deprecated
058 public Set<String> getPortletInvocationWhitelistActions();
059
060 public boolean isOriginCSRFWhitelisted(long companyId, String origin);
061
062 public boolean isPortletCSRFWhitelisted(
063 HttpServletRequest request, Portlet portlet);
064
065
069 @Deprecated
070 public boolean isPortletCSRFWhitelisted(
071 long companyId, String portletId, String strutsAction);
072
073 public boolean isPortletInvocationWhitelisted(
074 HttpServletRequest request, Portlet portlet);
075
076
080 @Deprecated
081 public boolean isPortletInvocationWhitelisted(
082 long companyId, String portletId, String strutsAction);
083
084 public boolean isPortletURLCSRFWhitelisted(
085 LiferayPortletURL liferayPortletURL);
086
087 public boolean isPortletURLPortletInvocationWhitelisted(
088 LiferayPortletURL liferayPortletURL);
089
090 public boolean isValidSharedSecret(String sharedSecret);
091
092
095 @Deprecated
096 public Set<String> resetOriginCSRFWhitelist();
097
098
101 @Deprecated
102 public Set<String> resetPortletCSRFWhitelist();
103
104
107 @Deprecated
108 public Set<String> resetPortletInvocationWhitelist();
109
110
113 @Deprecated
114 public Set<String> resetPortletInvocationWhitelistActions();
115
116 }