1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.codelibs.fess.mylasta.direction.sponsor;
17
18 import org.lastaflute.core.security.InvertibleCryptographer;
19 import org.lastaflute.core.security.OneWayCryptographer;
20 import org.lastaflute.core.security.SecurityResourceProvider;
21
22
23
24
25
26
27 public class FessSecurityResourceProvider implements SecurityResourceProvider {
28
29 protected final InvertibleCryptographer primaryInvertibleCryptographer;
30 protected final OneWayCryptographer primaryOneWayCryptographer;
31
32 public FessSecurityResourceProvider(final InvertibleCryptographer primaryInvertibleCryptographer,
33 final OneWayCryptographer primaryOneWayCryptographer) {
34 this.primaryInvertibleCryptographer = primaryInvertibleCryptographer;
35 this.primaryOneWayCryptographer = primaryOneWayCryptographer;
36 }
37
38 @Override
39 public InvertibleCryptographer providePrimaryInvertibleCryptographer() {
40 return primaryInvertibleCryptographer;
41 }
42
43 @Override
44 public OneWayCryptographer providePrimaryOneWayCryptographer() {
45 return primaryOneWayCryptographer;
46 }
47 }