Skip to main content
Version: 8.2411.x.x RR

SecToken object methods

MethodDescriptionSample
ch.nevis.session.SecToken.new(sectokenAsXml)Instantiates a SecToken, based on the content of the XML string passed as parameter.sectoken = ch.nevis.session.SecToken.new(req:getHeader("isiwebsectoken"))
sectoken:getVersion()Returns the version of the SecToken as a string.version = sectoken:getVersion()
sectoken:getAlgorithm()Returns the algorithm of the SecToken.local algorithm = sectoken:getAlgorithm()
sectoken:getUserId()Returns the user ID of the SecToken as a stringlocal userId = sectoken:getUserId()
sectoken:getUserRoles()Returns the user roles of the SecToken as a string.userRoles = sectoken:getUserRoles()
sectoken:getSessionId()Returns the session ID of the SecToken as a string.local sessionId = sectoken:getSessionId()
sectoken:getEntryId()Returns the entry ID of the SecToken as a string.local entryId = sectoken:getEntryId()
sectoken:getEsAuthId()Returns the EsAuth ID of the SecToken as a string.local esauthId = sectoken:getEsAuthId()
sectoken:getClientId()Returns the client ID of the SecToken as a string.local clientId = sectoken:getClientId()
sectoken:getAuthStrength()Returns the authentication strength of the SecToken as a string.local authStrength = sectoken:getAuthStrength()
sectoken:getDomain()Returns the domain of the SecToken as a string.local domain = sectoken:getDomain()
sectoken:getSignTime()Returns the time (in epoch, number of seconds since th 1.1.1970 GMT) when the token has been signed,local signTime = sectoken:getSignTime()
sectoken:getTimeToLive()Returns the number of seconds until the sectoken expireslocal timeToLive = sectoken:getTimeToLive()
sectoken:getFingerPrint()Returns the fingerprint of the SecToken as a stringlocal fingerPrint = sectoken:getFingerPrint()