src/java.base/share/classes/javax/security/auth/login/Configuration.java
changeset 53018 8bf9268df0e2
parent 47216 71c04702a3d5
equal deleted inserted replaced
53017:e10a1f7aaa13 53018:8bf9268df0e2
   416                                 Configuration.Parameters params,
   416                                 Configuration.Parameters params,
   417                                 String provider)
   417                                 String provider)
   418                 throws NoSuchProviderException, NoSuchAlgorithmException {
   418                 throws NoSuchProviderException, NoSuchAlgorithmException {
   419 
   419 
   420         Objects.requireNonNull(type, "null type name");
   420         Objects.requireNonNull(type, "null type name");
   421         if (provider == null || provider.length() == 0) {
   421         if (provider == null || provider.isEmpty()) {
   422             throw new IllegalArgumentException("missing provider");
   422             throw new IllegalArgumentException("missing provider");
   423         }
   423         }
   424 
   424 
   425         checkPermission(type);
   425         checkPermission(type);
   426         try {
   426         try {