Table of Contents

Class JwtWrapper

Namespace
Zedal.Sdk.Jwt
Assembly
Zedal.Sdk.dll

Base class for JWTs.

[Serializable]
public abstract class JwtWrapper : ISerializable
Inheritance
JwtWrapper
Implements
Derived
Inherited Members

Constructors

JwtWrapper(SerializationInfo, StreamingContext)

Initializes a new instance of the JwtWrapper class with serialized data.

JwtWrapper(string)

Initializes a new instance of the JwtWrapper class. Constructor. As wrapper Jwt is mandatory and cant be changed.

Properties

Jwt

Gets the jwt.

Methods

CreateToken(byte[])

Creates the token from its JWT byte array representation.

CreateToken<T>(byte[])

Creates the token from its JWT byte array representation.

CreateToken<T>(string)

Creates a token from its JWT string with the chosen TokenType T This method is obsolete and will be removed in future versions. Please use the byte[]-based method instead for better security and flexibility.

GetInternalType()

Reads the internal type as string from infotech jwts.

GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo object with the data needed to serialize the target object.

GetScope()

maps the rights management from the portal.

GetSubject()

Returns the subject of the token.

GetTokenType()

Returns the type of the token.

IssuedAt()

Returns the time of issue as DateTime.

ToByteArray()

Returns the exact value of the wrapped JWT as a byte array with the smallest possible number of bytes.