|
15 | 15 | * or implied. |
16 | 16 | * See the License for the specific language governing permissions and limitations under the License. |
17 | 17 | */ |
18 | | -package sif3.common.test.security; |
| 18 | +package systemic.sif3.demo.security; |
19 | 19 |
|
| 20 | +import java.util.Map; |
| 21 | + |
| 22 | +import au.com.systemic.framework.utils.AdvancedProperties; |
20 | 23 | import sif3.common.model.RequestMetadata; |
21 | 24 | import sif3.common.model.security.TokenCoreInfo; |
22 | 25 | import sif3.common.model.security.TokenInfo; |
23 | 26 | import sif3.common.security.AbstractSecurityService; |
24 | | -import au.com.systemic.framework.utils.AdvancedProperties; |
25 | 27 |
|
26 | 28 | public class DummySecurityService extends AbstractSecurityService |
27 | 29 | { |
28 | 30 | // private static final long MINUTE = 1000*60; |
29 | 31 |
|
30 | | - public DummySecurityService(AdvancedProperties properties) |
| 32 | + public DummySecurityService(AdvancedProperties properties, Map<String, String> securityServiceParameters) |
31 | 33 | { |
32 | | - super(properties); |
| 34 | + super(properties, securityServiceParameters); |
33 | 35 | System.out.println("DummySecurityService Constructor called with property: " + getServiceProperties()); |
| 36 | + System.out.println("DummySecurityService Constructor called with securityServiceParameters: " + getSecurityServiceParameters()); |
34 | 37 | } |
35 | 38 |
|
36 | 39 | @Override |
37 | 40 | public TokenInfo getTokenInfo(String securityToken, RequestMetadata requestMetadata) |
38 | 41 | { |
39 | 42 | System.out.println("DummySecurityService.getTokenInfo() called for securityToken = "+securityToken+" and request metadata = "+requestMetadata); |
40 | 43 | TokenInfo tokenInfo = BaseSecurityOperations.getTokenInfo(securityToken); |
41 | | - |
| 44 | + |
42 | 45 | // long expireTime = MINUTE*5; // expire every x minute. |
43 | 46 | // TokenInfo tokenInfo = new TokenInfo(securityToken); |
44 | 47 | // tokenInfo.setTokenExpiryDate(new Date(((new Date()).getTime()) + expireTime)); |
|
0 commit comments