21 lines
		
	
	
		
			725 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			725 B
		
	
	
	
		
			Go
		
	
	
	
package core
 | 
						|
 | 
						|
import (
 | 
						|
	"golang.org/x/net/context"
 | 
						|
 | 
						|
	vaPB "github.com/letsencrypt/boulder/va/proto"
 | 
						|
)
 | 
						|
 | 
						|
// ValidationAuthority defines the public interface for the Boulder VA
 | 
						|
type ValidationAuthority interface {
 | 
						|
	// PerformValidation checks the challenge with the given index in the
 | 
						|
	// given Authorization and returns the updated ValidationRecords.
 | 
						|
	//
 | 
						|
	// A failure to validate the Challenge will result in a error of type
 | 
						|
	// *probs.ProblemDetails.
 | 
						|
	//
 | 
						|
	// TODO(#1626): remove authz parameter
 | 
						|
	PerformValidation(ctx context.Context, domain string, challenge Challenge, authz Authorization) ([]ValidationRecord, error)
 | 
						|
	IsSafeDomain(ctx context.Context, req *vaPB.IsSafeDomainRequest) (resp *vaPB.IsDomainSafe, err error)
 | 
						|
}
 |