# Functions

CheckNotExpiredDateEpochUNIX returns true if the date is not expired or false if expired.
CheckNotExpiredDateISO returns true if the date is not expired or false if expired or error.
CreatePartsUnsignedJWT function converts both headers and payload data to RawBase64UrlSafe format to return the encoded parts.
No description provided by the author
DeserializeCompactJWE gets the parts of a compact JWE: - ProtectedHeaders as map[string]interface{} (JSON) - OrigProtectedHders as Base64Url encoded string - UnprotectedHeaders as map[string]interface{} (JSON) - Recipients is an array of recipients which contains the encrypted CEK for each recipient (only one recipient is allowed in OpenID).
No description provided by the author
DeserializeJsonJWE gets the parts of a JSON JWE (no compact serialization): - ProtectedHeaders as map[string]interface{} (JSON) - OrigProtectedHders as Base64Url encoded string - UnprotectedHeaders as map[string]interface{} (JSON) - Recipients is an array of recipients which contains the encrypted CEK for each recipient (only one recipient is allowed in OpenID).
DeserializeJWE deserializes the given serialized JWE into a JWEncryptionGo object.
No description provided by the author
GetDataByPartsJWT decodes and decompress the parts or the JWT and returns DataJWT.
GetInflatedDataByCompactJWT decompress a JWT payload if required and returns payload bytes and header claims or nil if some error.
GetInflatedDataByPartsJWT decompress a JWT payload if required and returns payload bytes and header claims or nil if some error.
GetPartsJWT gets a compact JWT/PartsJWT (string, not JSON) and returns an object with header, payload and signature (base64url encoded), or nil if error.
NewNumericDate constructs NumericDate from time.Time value.
No description provided by the author

# Constants

A128CBCHS256ALG represents AES_128_CBC_HMAC_SHA_256 encryption algorithm value.
A192CBCHS384ALG represents AES_192_CBC_HMAC_SHA_384 encryption algorithm value.
A256CBCHS384ALG represents AES_256_CBC_HMAC_SHA_384 encryption algorithm value (not defined in JWA spec above).
A256CBCHS512ALG represents AES_256_CBC_HMAC_SHA_512 encryption algorithm value.
A256GCMALG is the default content encryption algorithm value as per the JWA specification: https://tools.ietf.org/html/rfc7518#section-5.1.
string.
*byteBuffer.
*byteBuffer.
bool.
bool.
CompressionAlgorithm.
string.
array.
string.
JSON.
*byteBuffer.
JSON.
JSON.
*JSONWebKey.
string.
string.
string.
*byteBuffer (int).
*byteBuffer ([]byte).
string.
*byteBuffer.
string.
HeaderX509CertificateChain contains the X.509 public key certificate or certificate chain: For JWS: corresponding to the key used to digitally sign the JWS.
HeaderX509CertificateDigest (X.509 certificate SHA-1 thumbprint) is a base64url-encoded SHA-1 thumbprint (a.k.a.
string.
HeaderX509URL is a URI that refers to a resource for the X.509 public key certificate or certificate chain: For JWS: corresponding to the key used to digitally sign the JWS.
[]*x509.Certificate.
XC20PALG represents XChacha20Poly1305 content encryption algorithm value.

# Variables

No description provided by the author
No description provided by the author
ErrMsgExpired indicates that token is used after expiry time indicated in exp claim.
No description provided by the author
ErrMsgInvalidAudience indicated invalid aud claim.
No description provided by the author
ErrInvalidClaims indicates that given claims have invalid type.
ErrMsgInvalidContentType indicates that token requires JWT cty header.
No description provided by the author
ErrMsgInvalidID indicates invalid jti claim.
ErrInvalidIssuer indicates invalid iss claim.
No description provided by the author
No description provided by the author
ErrMsgInvalidSubject indicates invalid sub claim.
ErrMsgIssuedInTheFuture indicates that the iat field is in the future.
No description provided by the author
No description provided by the author
No description provided by the author
ErrMsgNotValidYet indicates that token is used before time indicated in nbf claim.
ErrMsgUnmarshalAudience indicates that aud claim could not be unmarshalled.
ErrMsgUnmarshalNumericDate indicates that JWT NumericDate could not be unmarshalled.
No description provided by the author
No description provided by the author
GetDataJWT returns nil or a deserialized JWT with header and payload as JSON data and signature as bytes.

# Structs

No description provided by the author
DecryptedOpenidJWE represents a RAW JSON decrypted JWE.
HeaderRequestJWE contains the JOSE header of an encrypted DIDComm-JAR message following both JOSE ([RFC7516](https://www.rfc-editor.org/rfc/rfc7516.html#section-4)) and DIDComm specifications: - the **"typ"** (*required*) field value is *"jwt"*.
joseUtils.HeaderRequestJWS contains the JOSE header of a signed DIDComm-JAR message.- the **"alg"** field value is the identifier of the digital signature algorithm.
JWEncryptionGo represents a JWE in Go (defined in https://tools.ietf.org/html/rfc7516).
JWEncryptionRawJSON represents a RAW JSON JWE that is used for serialization/deserialization (JWEncryptionGo) OpenID Connect specification mandates to use JWS compact serialization and JWE compact serialization whenever necessary Any JWT must follow compact serialization.
This has the 3 parts encoded in Base64url format.
PayloadClaims represents public claim values (as specified in RFC 7519).
RecipientHeaders are the recipient headers.
RecipientJWE is a recipient of a JWE including the shared encryption key.

# Type aliases

AudienceSingle represents one of the recipients that the JWT is intended for.
AudienceSlice represents the recipients that the JWT is intended for.
Headers represents JOSE headers.
Used to pass the json.Marshal functions to the methods.
NumericDate represents date and time as the number of seconds since the epoch, ignoring leap seconds.