-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
夜色
committed
Jun 9, 2018
1 parent
ed14d9c
commit 6c2e1b7
Showing
6 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,8 @@ | |
* | ||
* @author [email protected] | ||
*/ | ||
public interface CipherFactory extends Factory<Cipher> { | ||
public interface RsaCipherFactory extends Factory<Cipher> { | ||
static Cipher create() { | ||
return SpiLoader.load(CipherFactory.class).get(); | ||
return SpiLoader.load(RsaCipherFactory.class).get(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,15 +21,15 @@ | |
|
||
import com.mpush.api.connection.Cipher; | ||
import com.mpush.api.spi.Spi; | ||
import com.mpush.api.spi.core.CipherFactory; | ||
import com.mpush.api.spi.core.RsaCipherFactory; | ||
|
||
/** | ||
* Created by yxx on 2016/5/19. | ||
* | ||
* @author [email protected] | ||
*/ | ||
@Spi | ||
public class RsaCipherFactory implements CipherFactory { | ||
public class DefaultRsaCipherFactory implements RsaCipherFactory { | ||
private static final RsaCipher RSA_CIPHER = RsaCipher.create(); | ||
|
||
@Override | ||
|
1 change: 0 additions & 1 deletion
1
mpush-common/src/main/resources/META-INF/services/com.mpush.api.spi.core.CipherFactory
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
mpush-common/src/main/resources/META-INF/services/com.mpush.api.spi.core.RsaCipherFactory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
com.mpush.common.security.DefaultRsaCipherFactory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters