File tree 1 file changed +5
-4
lines changed
prov/src/test/java/org/bouncycastle/jcajce/provider/test
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 19
19
import org .bouncycastle .jcajce .provider .asymmetric .rsa .BCRSAPublicKey ;
20
20
import org .bouncycastle .jce .provider .BouncyCastleProvider ;
21
21
import org .bouncycastle .test .TestResourceFinder ;
22
+ import org .bouncycastle .util .Strings ;
22
23
import org .bouncycastle .util .encoders .Base64 ;
23
24
24
25
public class CompositeSignaturesTest
@@ -62,10 +63,10 @@ public void testKeyPairGeneration()
62
63
CompositePublicKey compositePublicKey = (CompositePublicKey )keyPair .getPublic ();
63
64
CompositePrivateKey compositePrivateKey = (CompositePrivateKey )keyPair .getPrivate ();
64
65
65
- String firstPublicKeyAlgorithm = compositePublicKey .getPublicKeys ().get (0 ).getAlgorithm (). toUpperCase ( );
66
- String secondPublicKeyAlgorithm = compositePublicKey .getPublicKeys ().get (1 ).getAlgorithm (). toUpperCase ( );
67
- String firstPrivateKeyAlgorithm = compositePrivateKey .getPrivateKeys ().get (0 ).getAlgorithm (). toUpperCase ( );
68
- String secondPrivateKeyAlgorithm = compositePrivateKey .getPrivateKeys ().get (1 ).getAlgorithm (). toUpperCase ( );
66
+ String firstPublicKeyAlgorithm = Strings . toUpperCase ( compositePublicKey .getPublicKeys ().get (0 ).getAlgorithm ());
67
+ String secondPublicKeyAlgorithm = Strings . toUpperCase ( compositePublicKey .getPublicKeys ().get (1 ).getAlgorithm ());
68
+ String firstPrivateKeyAlgorithm = Strings . toUpperCase ( compositePrivateKey .getPrivateKeys ().get (0 ).getAlgorithm ());
69
+ String secondPrivateKeyAlgorithm = Strings . toUpperCase ( compositePrivateKey .getPrivateKeys ().get (1 ).getAlgorithm ());
69
70
70
71
BCRSAPublicKey rsaPublicKey = null ;
71
72
BCRSAPublicKey rsaPrivateKey = null ;
You can’t perform that action at this time.
0 commit comments