ParseEncodedKeySpec

tsec.jwt.util.ParseEncodedKeySpec$

Attributes

Source
ParseEncodedKeySpec.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def concatSignatureToDER[F[_], A](signature: Array[Byte])(implicit me: MonadError[F, Throwable], ecTag: ECKFTag[A]): F[Array[Byte]]

Signature transcode to der as required by the JCA.

Signature transcode to der as required by the JCA. Adapted from the implementation in scala-jwt, which itself was adapted from jose4j, which itself was adapted from from org.apache.xml.security.algorithms.implementations.SignatureECDSA in the (Apache 2 licensed) Apache Santuario XML Security library.

Value parameters

me

MonadError Instance

signature

the signature to convert to DER

Attributes

Returns
Source
ParseEncodedKeySpec.scala
def derToConcat[F[_], A](derSignature: Array[Byte])(implicit ecTag: ECKFTag[A], me: MonadError[F, Throwable]): F[Array[Byte]]

ASN.1/DER to the concat required by https://tools.ietf.org/html/rfc7518#section-3.4 Adapted from scala-jwt, itself adapted from jose4j

ASN.1/DER to the concat required by https://tools.ietf.org/html/rfc7518#section-3.4 Adapted from scala-jwt, itself adapted from jose4j

Attributes

Source
ParseEncodedKeySpec.scala
def privKeyFromBytes[F[_], A](keyBytes: Array[Byte])(implicit kt: KFTag[A]): Repr[A]

Attributes

Source
ParseEncodedKeySpec.scala
def pubKeyFromBytes[F[_], A](keyBytes: Array[Byte])(implicit kt: KFTag[A]): Repr[A]

Attributes

Source
ParseEncodedKeySpec.scala