def METHOD_NAME(
    cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
):
    algorithm = tok.get_name(relativize=False)
    inception = tok.get_uint32()
    expiration = tok.get_uint32()
    mode = tok.get_uint16()
    error = tok.get_uint16()
    key_b64 = tok.get_string().encode()
    key = base64.b64decode(key_b64)
    other_b64 = tok.concatenate_remaining_identifiers(True).encode()
    other = base64.b64decode(other_b64)
    return cls(
        rdclass, rdtype, algorithm, inception, expiration, mode, error, key, other
    )