github.com/hyperledger/aries-framework-go@v0.3.2/pkg/crypto/webkms/webkms.go (about)

     1  /*
     2  Copyright SecureKey Technologies Inc. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package webkms
     8  
     9  import (
    10  	"github.com/hyperledger/aries-framework-go/component/kmscrypto/crypto/webkms"
    11  
    12  	webkmsimpl "github.com/hyperledger/aries-framework-go/component/kmscrypto/kms/webkms"
    13  )
    14  
    15  // HTTPClient interface for the http client.
    16  type HTTPClient = webkms.HTTPClient
    17  
    18  // RemoteCrypto implementation of kms.KeyManager api.
    19  type RemoteCrypto = webkms.RemoteCrypto
    20  
    21  // New creates a new remoteCrypto instance using http client connecting to keystoreURL.
    22  func New(keystoreURL string, client HTTPClient, opts ...webkmsimpl.Opt) *RemoteCrypto {
    23  	return webkms.New(keystoreURL, client, opts...)
    24  }