All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.specmatic.conversions.NoSecurityScheme.kt Maven / Gradle / Ivy

Go to download

Turn your contracts into executable specifications. Contract Driven Development - Collaboratively Design & Independently Deploy MicroServices & MicroFrontends.

There is a newer version: 2.0.37
Show newest version
package io.specmatic.conversions

import io.specmatic.core.HttpRequest
import io.specmatic.core.HttpRequestPattern
import io.specmatic.core.Resolver
import io.specmatic.core.Result
import io.specmatic.core.pattern.Pattern
import io.specmatic.core.pattern.Row

class NoSecurityScheme : OpenAPISecurityScheme {
    override fun matches(httpRequest: HttpRequest): Result {
        return Result.Success()
    }

    override fun equals(other: Any?): Boolean {
        return other is NoSecurityScheme
    }

    override fun hashCode(): Int {
        return javaClass.hashCode()
    }

    override fun removeParam(httpRequest: HttpRequest): HttpRequest {
        return httpRequest
    }

    override fun addTo(httpRequest: HttpRequest): HttpRequest {
        return httpRequest
    }

    override fun addTo(requestPattern: HttpRequestPattern, row: Row): HttpRequestPattern {
        return requestPattern
    }

    override fun isInRow(row: Row): Boolean {
        return false
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy