object SSLHelper
Static utilities for creating SSL Contexts to serve the API via HTTPS. Pre-requisites:
- A valid certificate is expected to be found in a keystore.
- Some environment variables need to be set beforehand:
- KEYSTORE_PATH: location of the keystore storing the certificate.
- KEYSTORE_PASSWORD: password protecting the keystore (leave empty if there is none).
- KEYMANAGER_PASSWORD: password protecting the certificate (leave empty is there is none).
- Note
The inner functionality needs to be able read the host's environment and filesystem
,Further docs, see https://github.com/weso/rdfshape-api/wiki/Deploying-RDFShape-API-(SBT)#serving-with-https
- See also
- Alphabetic
- By Inheritance
- SSLHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getContext: SSLContext
Try to build an SSL Context given that the certificate's location and credentials are in the PATH.
Try to build an SSL Context given that the certificate's location and credentials are in the PATH.
- returns
An SSLContext created from the user's certificate
- Annotations
- @throws(classOf[SSLContextCreationException]) @throws(classOf[IOException])
- Exceptions thrown
es.weso.rdfshape.server.utils.error.exceptions.SSLContextCreationException
On errors getting the certificate informationjava.io.IOException
On errors accessing the filesystem
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val keyManagerPassword: Option[String]
Password protecting the certificate, extracted from the host's environment.
- lazy val keyStorePassword: Option[String]
Password protecting the keystore, extracted from the host's environment.
- lazy val keyStorePath: Option[String]
Location of the keystore storing the certificate, extracted from the host's environment.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated