@Test void isRealmValid() { TokenValidator tokenValidator = new TokenValidator(); assertTrue(tokenValidator.isRealmValid("http: assertFalse(tokenValidator.isRealmValid("http: assertFalse(tokenValidator.isRealmValid("http: assertFalse(tokenValidator.isRealmValid("http: assertFalse(tokenValidator.isRealmValid("", "realm")); assertFalse(tokenValidator.isRealmValid(null, "realm")); }
boolean isRealmValid(String issuer, String realm) { return !((issuer == null || issuer.isEmpty()) || (realm == null || realm.isEmpty())) && issuer.endsWith("/".concat(realm)); }
TokenValidator { boolean isRealmValid(String issuer, String realm) { return !((issuer == null || issuer.isEmpty()) || (realm == null || realm.isEmpty())) && issuer.endsWith("/".concat(realm)); } }
TokenValidator { boolean isRealmValid(String issuer, String realm) { return !((issuer == null || issuer.isEmpty()) || (realm == null || realm.isEmpty())) && issuer.endsWith("/".concat(realm)); } TokenValidator();  TokenValidator(boolean checkTokenType, boolean checkActive, boolean checkRealm); }
TokenValidator { boolean isRealmValid(String issuer, String realm) { return !((issuer == null || issuer.isEmpty()) || (realm == null || realm.isEmpty())) && issuer.endsWith("/".concat(realm)); } TokenValidator();  TokenValidator(boolean checkTokenType, boolean checkActive, boolean checkRealm); void validate(); TokenValidator setRealm(String realm); TokenValidator setAlgorithmType(AlgorithmType algorithmType); TokenValidator setPublicKey(PublicKey publicKey); TokenValidator setSecretKey(SecretKey secretKey); TokenValidator setJwt(JWSInput jws); TokenValidator setToken(AccessToken token); }
TokenValidator { boolean isRealmValid(String issuer, String realm) { return !((issuer == null || issuer.isEmpty()) || (realm == null || realm.isEmpty())) && issuer.endsWith("/".concat(realm)); } TokenValidator();  TokenValidator(boolean checkTokenType, boolean checkActive, boolean checkRealm); void validate(); TokenValidator setRealm(String realm); TokenValidator setAlgorithmType(AlgorithmType algorithmType); TokenValidator setPublicKey(PublicKey publicKey); TokenValidator setSecretKey(SecretKey secretKey); TokenValidator setJwt(JWSInput jws); TokenValidator setToken(AccessToken token);  }