Functions
Link copied to clipboard
Encodes these DER-encoded key bytes as a PEM string, wrapping the Base64 body in -----BEGIN/END [keyType]----- markers.
Link copied to clipboard
operator fun invoke(liberator: String, keymasterConfiguration: IKeyMasterConfiguration, objectMapper: ObjectMapper = jacksonObjectMapper()): StreamLinkConnectionFactory
Creates a factory from a fully-formed keymasterConfiguration.
operator fun invoke(liberator: String, keymasterKey: InputStream, hashingAlgorithm: KeyMasterHashingAlgorithm = SHA256, objectMapper: ObjectMapper = jacksonObjectMapper()): StreamLinkConnectionFactory
Creates a factory reading a PKCS#8 PEM KeyMaster key from keymasterKey, hashed with hashingAlgorithm when signing tokens.
operator fun invoke(liberator: String, keymasterKey: PrivateKey, hashingAlgorithm: KeyMasterHashingAlgorithm = SHA256, objectMapper: ObjectMapper = jacksonObjectMapper()): StreamLinkConnectionFactory
Creates a factory using a KeyMaster PrivateKey, which is converted to PEM and hashed with hashingAlgorithm when signing tokens.